home *** CD-ROM | disk | FTP | other *** search
/ CDUTIL 13 / CDUTIL #13 Julio 1995.iso / windows / acadwin / support / mvsetup.lsp < prev    next >
Encoding:
Text File  |  1995-02-08  |  116.8 KB  |  3,319 lines

  1. ;;;
  2. ;;;    mvsetup.lsp
  3. ;;;
  4. ;;;    Copyright (C) 1990, 1992, 1994 by Autodesk, Inc.
  5. ;;;    
  6. ;;;    Permission to use, copy, modify, and distribute this software 
  7. ;;;    for any purpose and without fee is hereby granted, provided
  8. ;;;    that the above copyright notice appears in all copies and 
  9. ;;;    that both that copyright notice and the limited warranty and 
  10. ;;;    restricted rights notice below appear in all supporting 
  11. ;;;    documentation.
  12. ;;;    
  13. ;;;    AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.  
  14. ;;;    AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF 
  15. ;;;    MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC. 
  16. ;;;    DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE 
  17. ;;;    UNINTERRUPTED OR ERROR FREE.
  18. ;;;    
  19. ;;;    Use, duplication, or disclosure by the U.S. Government is subject to 
  20. ;;;    restrictions set forth in FAR 52.227-19 (Commercial Computer 
  21. ;;;    Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) 
  22. ;;;    (Rights in Technical Data and Computer Software), as applicable. 
  23. ;;;
  24. ;;;
  25. ;;; DESCRIPTION
  26. ;;;
  27. ;;;   This is a setup routine for Mview.
  28. ;;;   
  29. ;;;   It is based around a set of functionality that was determined to be a
  30. ;;;   necessary part of preparing a drawing for plotting.  This routine allows
  31. ;;;   the user to insert several pre-defined title blocks (ANSI A - E) and in
  32. ;;;   addition it allows the user to create a set of viewports within the 
  33. ;;;   title block just inserted.  A global scale may be specified as a ratio
  34. ;;;   between the scale of the title block in paperspace and the model geometry
  35. ;;;   in modelspace.  For example, if you were doing an engineering drawing at
  36. ;;;   a scale of 1:4 or quarter scale, then you would specify that you wanted
  37. ;;;   a ratio of 1 paperspace unit to 4 modelspace units.  The routine will 
  38. ;;;   convert this to 0.25xp for the Zoom command.  You may also elect to 
  39. ;;;   align the viewports.
  40. ;;;   
  41. ;;;   (The first time you invoke MVSETUP, you may notice a slight delay.
  42. ;;;   This occurs because the routine is creating a default file of various
  43. ;;;   title blocks and viewport layouts.  If you should accidentally erase
  44. ;;;   your default file, another will be created the next time you invoke
  45. ;;;   MVSETUP.  The file will be created in the directory specified by the
  46. ;;;   AutoCAD system variable "ACADPREFIX".  If you run AutoCAD from a
  47. ;;;   directory other than that one, and the system variables ACAD or ACADCFG
  48. ;;;   do not point to that directory, then MVSETUP will not be able to find 
  49. ;;;   it, and will create a new one in the directory pointed to by the first
  50. ;;;   path found in the current setting of the AutoCAD system variable 
  51. ;;;   "ACADPREFIX".)
  52. ;;;   
  53. ;;;   When you invoke MVSETUP from the command line or one of the menus, you
  54. ;;;   are given four options;  three dealing with the creation and manipulation
  55. ;;;   of viewports, and one which allows you to insert various "title blocks".
  56. ;;;   The initial prompt is shown below.
  57. ;;;   
  58. ;;;         Align/Create/Scale viewports/Options/Title block/Undo:  
  59. ;;;         
  60. ;;;   The Align viewports option presents you with several more options; you
  61. ;;;   are asked to determine the type of alignment you wish to perform.
  62. ;;;   
  63. ;;;         Angled/Horizontal/Vertical alignment/Rotate view/Undo? 
  64. ;;;           
  65. ;;;   The Horizontal and Vertical options ask you to pick a basepoint in one
  66. ;;;   viewport, and the point to move in another viewport.  The view in the
  67. ;;;   second viewport is panned by the offset distance in X or Y between
  68. ;;;   the two points relative to the zoom scale factor of the second viewport.
  69. ;;;   
  70. ;;;   The Angled option asks you for these two points and for a distance and
  71. ;;;   angle from the basepoint.  The point in the first viewport at the 
  72. ;;;   specified distance and angle from the basepoint is where the "other"
  73. ;;;   point will be panned.
  74. ;;;   
  75. ;;;   The Rotate view option asks you for a basepoint and a rotation angle
  76. ;;;   and uses the DVIEW command to change the view twist.  This generally 
  77. ;;;   will be useful only when the UCS of the view you are rotating is 
  78. ;;;   parallel to the screen and would be used to align a view with an
  79. ;;;   angled edge with the Align Angled option.
  80. ;;;   
  81. ;;;   Selecting Create viewports prompts you with the following:
  82. ;;;   
  83. ;;;         Delete objects/<Create viewports>:
  84. ;;;   
  85. ;;;   Selecting Delete objects provides you with a general selection prompt
  86. ;;;   at which time you may delete any paperspace objects that you wish.
  87. ;;;   This is intended to allow you to clear an area for your new viewports.
  88. ;;;   Modelspace entities will NOT be removed.
  89. ;;;   
  90. ;;;   
  91. ;;;   Selecting Create viewports prompts you to select one of the viewport 
  92. ;;;   options listed.
  93. ;;;   
  94. ;;;         Available Mview viewport layout options: 
  95. ;;; 
  96. ;;;         0:       None
  97. ;;;         1:       Single
  98. ;;;         2:       Std. Engineering
  99. ;;;         3:       Array of Viewports
  100. ;;; 
  101. ;;;         Redisplay/<Number of entry to load>: 
  102. ;;;         
  103. ;;;   Pressing RETURN or selecting "None" returns you to the main prompt
  104. ;;;   without creating any viewports.  
  105. ;;;   
  106. ;;;   "Single" is a single viewport which can fill the default area open in 
  107. ;;;   the sheet or it can be located by picking two points on the screen.  
  108. ;;;   
  109. ;;;   Std. Engineering is a set of four viewports with the upper left viewport 
  110. ;;;   in plan view, the lower left in a front view, the lower right in a right 
  111. ;;;   side view, and the upper right in an oblique view at -45 degrees from 0 
  112. ;;;   and up 30 degrees.
  113. ;;;   
  114. ;;;   The "Array of Viewports" allows you to specify any array of viewports
  115. ;;;   that you want to place on your sheet, from a 1 by 2 or 2 by 1 to any
  116. ;;;   level allowed by AutoCAD.
  117. ;;;   
  118. ;;;   
  119. ;;;   After selecting option 1, 2 or 3, you are prompted to specify the bounding
  120. ;;;   area for the viewports that are to be created.  Each of the title blocks
  121. ;;;   provided has a bounding region defined for it in the default file.  You
  122. ;;;   can elect to create all of the viewports within this region by selecting 
  123. ;;;   "Default" at the following prompt:
  124. ;;;   
  125. ;;;         Bounding area for viewports.  Default/<First point >: 
  126. ;;;   
  127. ;;;   You can also select two points on the screen and the number of viewports 
  128. ;;;   you subsequently define will be mapped into this area.
  129. ;;;   
  130. ;;;   Picking options 2 or 3 prompts you to specify the distance between the
  131. ;;;   viewports; the interstitial distance.  This value must be a positive 
  132. ;;;   number but may be zero.  The value you enter for X is automatically
  133. ;;;   assigned to Y, though you may specify Y to have a different value.
  134. ;;;   If you selected option 2 above, then the four viewports are created and
  135. ;;;   the four views are mapped into them as defined in the default file.
  136. ;;;   The other options create the viewports but do not change the views in 
  137. ;;;   any of them; the view will be a plan view in the current UCS.
  138. ;;;   
  139. ;;;   
  140. ;;;   Selecting Scale viewports at the main menu prompts you to select the 
  141. ;;;   viewports you wish to scale.  If you select one or more viewports
  142. ;;;   you asked whether you wnat to set the zoom scales all at once or for
  143. ;;;   each viewport separately:
  144. ;;;   
  145. ;;;         Set zoom scale factors for viewports.  Interactively/<Uniform>:
  146. ;;;   
  147. ;;;   After selecting one of these you are asked the following;
  148. ;;;   
  149. ;;;         Enter the ratio of paper space units to model space units... 
  150. ;;;         Number of paper space units.  <1.0>: 
  151. ;;;         Number of model space units.  <1.0>: 
  152. ;;;   
  153. ;;;   The number of viewports specified will have their zoom scales changed
  154. ;;;   by the ratio of the paper space units divided by the model space units.
  155. ;;;   This is cumulative over time, so performing this operation twice with
  156. ;;;   paper space units set to 1.0 and model space units set to 2.0 will give
  157. ;;;   the same results as doing it once with 1.0 an 4.0 as the values.
  158. ;;;   
  159. ;;;   
  160. ;;;   Selecting Options at the main menu allows you to specify several
  161. ;;;   preferences for operation of Mvsetup.  They are:
  162. ;;;
  163. ;;;         Set Layer/LImits/Units/Xref: 
  164. ;;;   
  165. ;;;   The Layer option allows you to specify a layer, existing or new, on
  166. ;;;   which to insert the title block, the LImits option allows you to
  167. ;;;   specify whether or not to reset the limits to the drawing extents after
  168. ;;;   a title block has been inserted, Units specifies whether the sizes and 
  169. ;;;   point locations are to be translated to inch or millimeter paper units,
  170. ;;;   and the Xref option let's you determine whether the title block is to 
  171. ;;;   be inserted or Xref'ed.
  172. ;;;
  173. ;;;
  174. ;;;   Selecting Title block from the main menu gives you another sub-menu.
  175. ;;;   
  176. ;;;         Delete objects/Origin/<Insert title block>:
  177. ;;;   
  178. ;;;   Delete objects works as described above under Create viewports.
  179. ;;;   Origin allows you to specify a new UCS origin for the subsequent
  180. ;;;   insertion of a title block.  Pressing RETURN will cause you to be 
  181. ;;;   presented with a list of available title blocks or sheets.
  182. ;;;   
  183. ;;;         Available title block options:  
  184. ;;; 
  185. ;;;         0:       NONE
  186. ;;;         1:       ISO A4 Size(mm)
  187. ;;;         2:       ISO A3 Size(mm)
  188. ;;;         3:       ISO A2 Size(mm)
  189. ;;;         4:       ISO A1 Size(mm)
  190. ;;;         5:       ISO A0 Size(mm)
  191. ;;;         6:       ANSI-V Size(in)
  192. ;;;         7:       ANSI-A Size(in)
  193. ;;;         8:       ANSI-B Size(in)
  194. ;;;         9:       ANSI-C Size(in)
  195. ;;;         10:      ANSI-D Size(in)
  196. ;;;         
  197. ;;;         11:      ANSI-E Size(in)
  198. ;;;         12:      Arch/Engineering (24 x 36 in)
  199. ;;; 
  200. ;;;         Add/Redisplay/<Number of entry to load>:      
  201. ;;;         
  202. ;;;   This list includes ISO standard sheets used outside the US, specified
  203. ;;;   in millimeters, the ANSI standard sheet layouts from A to E and size 
  204. ;;;   A Vertical specified in inches.  Selecting the number preceding one of the
  205. ;;;   selections causes one of two things to occur.  One, if the AutoCAD
  206. ;;;   drawing associated with the selections cannot be found, then the 
  207. ;;;   default file is read, a definition is extracted, and the drawing is
  208. ;;;   created in your current drawing.  You are then asked whether you want
  209. ;;;   to save this drawing to disk.  If you want to use this drawing more
  210. ;;;   than once, you should answer Yes to this prompt.  Two, if the AutoCAD
  211. ;;;   drawing can be found then it is INSERTed into your drawing at 0,0.
  212. ;;;   
  213. ;;;   The other options are Add, Delete and Redisplay.
  214. ;;;   
  215. ;;;   Pressing RETURN or selecting 0 for "None" at this prompt returns you 
  216. ;;;   to the main menu.  Selecting the number of a viable entry causes one
  217. ;;;   of two things to occur:  if you selected one of the built-in entries,
  218. ;;;   and you have not created a drawing by the name associated with this 
  219. ;;;   entry, the default file is scanned for a definition, and if found, 
  220. ;;;   the title block is created in your current drawing.  You are asked
  221. ;;;   whether you want to create a drawing of the entities just created.
  222. ;;;   For example, picking 1 (ANSI-V Size) gives you the following prompt:
  223. ;;;   
  224. ;;;         Create a drawing named ansi-v.dwg? <Y>:
  225. ;;;   
  226. ;;;   Answering Yes causes a drawing to be created and reinserted into your
  227. ;;;   drawing where it was created.
  228. ;;;   
  229. ;;;   If the drawing already exists it is inserted at the current UCS origin.
  230. ;;;   This is the mechanism for using your own title blocks and parts of
  231. ;;;   title blocks.  
  232. ;;;   
  233. ;;;   Selecting Add after the available title blocks are listed gives you
  234. ;;;   the following prompts; example text follows the colon:
  235. ;;;   
  236. ;;;         Title block description: A/E (24 x 18in)
  237. ;;;   
  238. ;;;         Drawing to insert (without extension): arch-b
  239. ;;;         Specify default usable area? <Y>:  Y
  240. ;;;         
  241. ;;;         Lower left corner: (1.12 0.99 0.00)
  242. ;;;         Upper right corner: (18.63 17.02 0.00)
  243. ;;;   
  244. ;;;   A line looking like this
  245. ;;;   
  246. ;;;         A/E (24 x 18in),arch-b.dwg,(1.12 0.99 0.00),(18.63 17.02 0.00),in
  247. ;;;   
  248. ;;;   is added after the last entry in the default file.
  249. ;;;   
  250. ;;;   The last field of the line specifies whether the title block has been 
  251. ;;;   created in inch or millimeter units.  This filed is used to allow title 
  252. ;;;   blocks created in either unit system to be interchanged simply by setting 
  253. ;;;   the unit type in the Options menu.
  254. ;;;   
  255. ;;;   Selecting Delete at the same prompt allows you to delete any of the 
  256. ;;;   lines listed except line 0.  Redisplay causes the list to be displayed 
  257. ;;;   again.
  258. ;;;   
  259. ;;;   If neither a valid drawing or a definition can be found you are so
  260. ;;;   informed and returned to the main menu.
  261. ;;;   
  262. ;;;   
  263. ;;;   GLOBALS:
  264. ;;;     mv_nln -- New layer name for title block insertions.
  265. ;;;     mv_slr -- Set Limits Request from drawing extents.
  266. ;;;     mv_utr -- Unit Translation Request.
  267. ;;;     mv_uxr -- Use Xref Request for title block insertions.
  268. ;;;   
  269. ;;;----------------------------------------------------------------------------;
  270. ;;;
  271. ;;; Avoid (gc)s on load to improve load time.
  272. ;;;
  273. (defun do_alloc (/ old_allod new_alloc)
  274.   (setq old_alloc (alloc 2000) new_alloc (alloc 2000))
  275.   (expand (1+ (/ 11500 new_alloc)))
  276.   (alloc old_alloc)
  277. )
  278. (do_alloc)
  279. (setq do_alloc nil)
  280. ;;;
  281. ;;; ===========================================================================
  282. ;;; ===================== load-time error checking ============================
  283. ;;;
  284.  
  285.   (defun ai_abort (app msg)
  286.      (defun *error* (s)
  287.         (if old_error (setq *error* old_error))
  288.         (princ)
  289.      )
  290.      (if msg
  291.        (alert (strcat " Error en la aplicaci≤n: "
  292.                       app
  293.                       " \n\n  "
  294.                       msg
  295.                       "  \n"
  296.               )
  297.        )
  298.      )
  299.      (exit)
  300.   )
  301.  
  302. ;;; Check to see if AI_UTILS is loaded, If not, try to find it,
  303. ;;; and then try to load it.
  304. ;;;
  305. ;;; If it can't be found or it can't be loaded, then abort the
  306. ;;; loading of this file immediately, preserving the (autoload)
  307. ;;; stub function.
  308.  
  309.   (cond
  310.      (  (and ai_dcl (listp ai_dcl)))          ; it's already loaded.
  311.  
  312.      (  (not (findfile "ai_utils.lsp"))                     ; find it
  313.         (ai_abort "MVSETUP"
  314.                   (strcat "Imposible localizar el archivo AI_UTILS.LSP."
  315.                           "\n Compruebe el directorio de soporte.")))
  316.  
  317.      (  (eq "failed" (load "ai_utils" "failed"))            ; load it
  318.         (ai_abort "MVSETUP" "Imposible cargar el archivo AI_UTILS.LSP"))
  319.   )
  320.  
  321.   (if (not (ai_acadapp))               ; defined in AI_UTILS.LSP
  322.       (ai_abort "MVSETUP" nil)         ; a Nil <msg> supresses
  323.   )                                    ; ai_abort's alert box dialog.
  324.  
  325. ;;; ==================== end load-time operations ===========================
  326. ;;;   
  327. ;;;   Start routine from menu pick or by typing MVS at the
  328. ;;;   command prompt.
  329. ;;;   
  330. (defun mv_sup ( / mv_err s mv_oer mv_oce mv_olu ll_crn need_z mv_orm mv_oln
  331.                   deffi deffo mv_utr mv_oas undo_setting)
  332.  
  333.   ;;
  334.   ;; Internal error handler defined locally
  335.   ;;
  336.  
  337.   (defun mv_err (s)                   ; If an error (such as CTRL-C) occurs
  338.                                       ; while this command is active...
  339.     (if (/= s "Funci≤n cancelada")
  340.       (if (= s "quitar / salir abandonar")
  341.         (princ)
  342.         (princ (strcat "\nError: " s))
  343.       )
  344.     )
  345.     (if deffi (close deffi))
  346.     (if deffo (close deffo))
  347.     (command "_.UNDO" "_EN")
  348.     (ai_undo_off)
  349.     (if mv_oer                        ; If an old error routine exists
  350.       (setq *error* mv_oer)           ; then, reset it 
  351.     )
  352.     (if mv_olu (setvar "lunits" mv_olu)) ; Restore prev. linear units value
  353.     (setvar "regenmode" mv_orm)       ; Restore prev. Regenmode value
  354.     (setvar "osmode" mv_osm)          ; Restore prev. Object snap mode value
  355.     (setvar "pickfirst" mv_oas)       ; Restore prev. Pickfirst value
  356.     (setvar "cmdecho" mv_oce)         ; Reset command echoing on error
  357.     (princ)
  358.   )
  359.   
  360.   (if (not *DEBUG*)
  361.     (if *error*                       ; If there is an error routine defined
  362.       (setq mv_oer   *error*          ; Store AutoLisp error routine
  363.             *error*  mv_err)          ; Temporarily replace it
  364.     )
  365.   )
  366.   (setq mv_oce (getvar "cmdecho"))
  367.   (setvar "cmdecho" 0)                ; Turn off command echoing
  368.  
  369.   (ai_undo_on)                        ; Turn UNDO on
  370.  
  371.   (setq mv_orm (getvar "regenmode"))
  372.   (setq mv_osm (getvar "osmode"))
  373.   (setq mv_oas (getvar "pickfirst"))
  374.   (setvar "pickfirst" 0)              ; Turn off pickfirst 
  375.   (setvar "osmode" 0)                 ; Turn off object snap mode
  376.   (setvar "regenmode" 1)              
  377.   (if (/= 4 (logand 4 (cdr (assoc 70 (tblsearch "LAYER" (getvar "CLAYER"))))))
  378.     (if (mv_ctm)                        ; Is Tile-mode on? T or nil
  379.       (mv_dos)                          ; Do old setup
  380.       ;; else    
  381.       (mv_dns)                          ; Do new setup
  382.     )
  383.     (princ "\nImposible ejecutar MVSETUP a partir de una capa bloqueada.")
  384.   )
  385.   (if deffi (setq deffi (close deffi)))
  386.   (if deffo (setq deffo (close deffo)))
  387.   (setvar "regenmode" mv_orm)         ; Restore prev. Regenmode value       
  388.   (setvar "osmode" mv_osm)            ; Restore prev. Object snap mode value
  389.   (setvar "pickfirst" mv_oas)         ; Restore prev. Pickfirst value
  390.  
  391.   (ai_undo_off)                       ; Return UNDO to initial state
  392.  
  393.   (setvar "cmdecho" mv_oce)           ; Reset command echoing
  394.   (if mv_oer                          ; If an old error routine exists
  395.     (setq *error* mv_oer)             ; then, reset it 
  396.   )
  397.   (princ)
  398. )
  399. ;;;
  400. ;;; Check Tile-mode.  Returns T if ON and nil if not on.
  401. ;;;
  402. ;;; mv_ctm == MView_Check_TileMode
  403. ;;;
  404. (defun mv_ctm ()
  405.   (if (= (getvar "TILEMODE") 1) 
  406.     (progn
  407.       (initget "Sφ No")
  408.       
  409.       (setq ans (getkword "\n┐Activar el Espacio papel? (No/<Sφ>): "))
  410.       
  411.       (if (= ans "No")
  412.         T
  413.         (progn
  414.           (setvar "TILEMODE" 0)
  415.           nil
  416.         )
  417.       )
  418.     )
  419.     nil
  420.   )
  421. )
  422. ;;;
  423. ;;; Do a new setup relative to a point to be given by the user.
  424. ;;; The default is the current 0,0,0.
  425. ;;;
  426. ;;; mv_dns == MView_Do_New_Setup
  427. ;;;
  428. (defun mv_dns (/ mv_ver mv_xdf mv_xlf o_cvpt ans sset ITEM_LIST fd)
  429.  
  430.   (setq mv_ver "2.0")                ; Reset this local if you make a change.
  431.   (setq mv_xpf (mv_cpf (getvar "acadprefix" )))
  432.   
  433.   (setq mv_xdf (strcat mv_xpf "mvsetup.dfs"))         
  434.   (setq mv_xlf "mvsetup.lsp")         ; Reset these locals if you make changes.
  435.   
  436.   (setq uctr 0)
  437.   (setq o_cvpt (getvar "cvport"))
  438.   (if (/= o_cvpt 1)
  439.     (command "_.PSPACE")               ; Change to paperspace
  440.   )
  441.                                         
  442.   ;; Look for external definitions --  set fd to file descriptor
  443.   (setq fd (mv_lfx mv_xdf "r"))         
  444.                                         
  445.   ;; Close the file, but do not set the handle to nil.
  446.   (if fd (close fd))
  447.                                         
  448.   (if (null fd)
  449.     ;; then
  450.     (progn
  451.       (princ (strcat "\nCreando el archivo de valores por defecto mvsetup.dfs" 
  452.                      "\nen el directorio "
  453.                      mv_xpf ". "))
  454.       (mv_cdf)
  455.       (setq fd (mv_lfx mv_xdf "r"))
  456.  
  457.       ;; Close the file; we were just checking to see if it was there.
  458.       (close fd)
  459.     )
  460.     ;; else
  461.   )
  462.   (setq temp T
  463.         mv_utr "mm"
  464.   )
  465.   (while temp
  466.     (initget "Alinear Crear Escala Bloque desHacer Opciones")
  467.     (setq ans (getkword (strcat
  468.       "\nAlinear/Crear/Escala vent. grßficas/"
  469.       "Opciones/Bloque tφtulos/desHacer: ")))
  470.       
  471.     (cond
  472.       ((= ans "Alinear")
  473.         (mv_vpa)                      ; Viewport alignment
  474.       )
  475.       ((= ans "Crear")
  476.         (setq temp1 T)
  477.         (while temp1
  478.           (initget "Crear Borrar desHacer")
  479.           (setq ans (getkword 
  480.             "\nBorrar objetos/desHacer/<Crear vent. grßficas>: "))
  481.           (cond
  482.             ((= ans "Borrar")
  483.               (command "_.UNDO" "_GROUP")
  484.               (setq uctr (1+ uctr))
  485.           
  486.               (princ "\nDesigne objetos a borrar... ")
  487.               (setq sset (ssget))
  488.               (if sset
  489.                 (command "_.ERASE" sset "")
  490.               )
  491.               (command "_.UNDO" "_EN")
  492.             )
  493.             ((= ans "desHacer")
  494.               (cond
  495.                 ((= uctr 0) (princ "\nNada por deshacer: \n"))
  496.                 ((> uctr 0) 
  497.                   (command "_.U")
  498.                   (setq uctr   (- uctr 1)
  499.                         ll_crn nil
  500.                   )
  501.                 )
  502.               ) 
  503.             )
  504.             (T
  505.               (command "_.UNDO" "_GROUP")
  506.               (setq uctr (1+ uctr))
  507.               (setq temp1 nil)
  508.               (if (setq deffi (mv_lfx mv_xdf "r"))
  509.                 (progn
  510.                   (textpage)
  511.                   (setq str1 "\nOpciones para la disposici≤n de ventanas en Vm·lt: \n")
  512.             
  513.                   (setq vp_item_list (mv_pao "MVIEWS" str1))
  514.             
  515.                   (if (and (= (type vp_item_list) 'LIST) (null skip))
  516.                     (mv_mvi)
  517.                   )
  518.                   (setq deffi (close deffi))
  519.                 )
  520.                 (princ (strcat "\nImposible abrir el archivo " mv_xdf " para lectura. "))
  521.               )
  522.               (command "_.UNDO" "_EN")
  523.             )
  524.           )
  525.         )
  526.         (command "_.UNDO" "_EN")
  527.       )
  528.       ((= ans "Opciones")
  529.         (mv_sop)                      ; Set options
  530.       )
  531.       ((= ans "Escala")
  532.         (mv_szs)                      ; Set zoom scale factors
  533.       )
  534.       ((= ans "Bloque")
  535.         (setq temp1 T)
  536.         (while temp1
  537.           (if (/= (getvar "cvport") 1)
  538.             (command "_.PSPACE")
  539.           )
  540.           (initget "Borrar Origen Insertar desHacer")
  541.           (setq ans (getkword 
  542.             "\nBorrar objetos/Origen/desHacer/<Insertar bloque>: "))
  543.           (cond
  544.             ((= ans "Borrar")
  545.               (command "_.UNDO" "_GROUP")
  546.               (setq uctr (1+ uctr))
  547.  
  548.               (princ "\nDesigne objetos a borrar... ")
  549.               (setq sset (ssget))
  550.               (if sset
  551.                 (command "_.ERASE" sset "")
  552.               )
  553.               (command "_.UNDO" "_EN")
  554.             )
  555.             ((= ans "Origen")
  556.               (command "_.UNDO" "_GROUP")
  557.               (setq uctr (1+ uctr))
  558.  
  559.               ;; Get an origin point for the new title block.
  560.               (initget 1)
  561.               (setq ans (getpoint '(0 0 0) 
  562.                 "\nNuevo punto de origen para esta hoja: "))
  563.               (command "_.UCS" "_O" ans)
  564.               (command "_.UNDO" "_EN")
  565.             )
  566.             ((= ans "desHacer")
  567.               (cond
  568.                 ((= uctr 0) (princ "\nNada por deshacer: \n"))
  569.                 ((> uctr 0) 
  570.                   (command "_.U")
  571.                   (setq uctr   (- uctr 1)
  572.                         ll_crn nil
  573.                   )
  574.                 )
  575.               ) 
  576.             )
  577.             (T
  578.               (command "_.UNDO" "_GROUP")
  579.               (setq uctr (1+ uctr))
  580.               (setq temp1 nil)
  581.               (if fd
  582.                 (mv_gop)
  583.                 (princ (strcat 
  584.                   "\nImposible abrir el archivo " mv_xdf " para lectura. "))
  585.               )
  586.               (command "_.UNDO" "_EN")
  587.             )
  588.           )
  589.         )
  590.         (command "_.UNDO" "_EN")
  591.       )
  592.       ((= ans "desHacer")
  593.         (cond
  594.           ((= uctr 0) (princ "\nNada por deshacer: \n"))
  595.           ((> uctr 0) 
  596.             (command "_.U")
  597.             (setq uctr   (- uctr 1)
  598.                   ll_crn nil
  599.             )
  600.           )
  601.         ) 
  602.       )
  603.       (T
  604.         (setq temp nil)
  605.       )
  606.     )
  607.   )
  608.   (if (/= o_cvpt 1)
  609.     (progn
  610.       (setq sset (ssget "_x" '((0 . "VIEWPORT"))))
  611.       (if sset 
  612.         (setq o_cvpt (mv_vvp o_cvpt sset))
  613.         (setq o_cvpt nil)
  614.       )
  615.       (command "_.MSPACE")              ; Change to modelspace
  616.       ;; If the previously current viewport has been deleted,
  617.       ;; this will do nothing.
  618.       (if o_cvpt (setvar "cvport" o_cvpt)) ; Restore previous active viewport
  619.     )
  620.   )
  621. )
  622. ;;;
  623. ;;; Set preference options.
  624. ;;;
  625. ;;; mv_sop == MView_Set_OPtions
  626. ;;;
  627. (defun mv_sop (/ temp lay cont)
  628.   (setq cont T)
  629.   (while cont
  630.     (initget "Capa Lφmites Unidades RefX")
  631.     (setq temp (getkword (strcat "\nEstablecer Capa/Lφmites/Unidades/RefX: ")))
  632.     (cond
  633.       ((= temp "Capa")
  634.         (setq mv_oln (getvar "CLAYER"))
  635.         (setq temp (if mv_nln (strcat " <" mv_nln ">: ") ": "))
  636.         (setq temp (getstring (strcat 
  637.           "\nNombre de capa para bloque de tφtulos o . para capa actual" temp))
  638.         )
  639.         (cond
  640.           ((= temp "")
  641.             (setq mv_nln nil)
  642.           )
  643.           ((= temp ".")
  644.             (setq mv_nln nil)
  645.           )
  646.           (T
  647.             (if (setq lay (tblsearch "LAYER" temp))
  648.               (if (= (logand (cdr(assoc 70 lay)) 2) 2)
  649.                 (command "_.LAYER" "_THAW" temp "")
  650.               )
  651.               (command "_.LAYER" "_NEW" temp "")
  652.             )
  653.             (setq mv_nln temp)
  654.           )
  655.         )
  656.       )
  657.       ((= temp "Lφmites")
  658.         (setq temp (if mv_slr "S" "N"))
  659.         (initget "Sφ No")
  660.         (setq temp (getkword (strcat "\n┐Establecer lφmites del dibujo? <"
  661.                               temp ">: ")))
  662.         (if mv_slr
  663.           (if (= temp "No")
  664.             (setq mv_slr nil)
  665.             (setq mv_slr T)
  666.           )
  667.           (if (= temp "Sφ")
  668.             (setq mv_slr T)
  669.             (setq mv_slr nil)
  670.           )
  671.         )
  672.       )
  673.       ((= temp "Unidades")
  674.         (setq temp (if mv_utr mv_utr "mm"))
  675.         (initget "Mm Milφmetros pUlgadas mEtros Pies")
  676.         (setq temp (getkword (strcat 
  677.           "\n┐Las unidades en Espacio papel estßn en Pies/pUlgadas/mEtros/Milφmetros? <"
  678.           temp ">: "))
  679.         )
  680.         (if temp
  681.           (cond
  682.             ((= temp "Milφmetros") (setq mv_utr "mm"))
  683.             ((= temp "Mm")          (setq mv_utr "mm"))
  684.             ((= temp "mEtros")      (setq mv_utr "M"))
  685.             ((= temp "Pies")        (setq mv_utr "ft"))
  686.             ((= temp "pUlgadas")      (setq mv_utr "in"))
  687.             (T (princ))
  688.           )
  689.         )
  690.       )
  691.       ((= temp "RefX")
  692.         (setq temp (if mv_uxr "RefX" "Insertar"))
  693.         (initget "Insertar RefX")
  694.         (setq temp (getkword (strcat 
  695.           "\n┐Enlazar RefX o Insertar el bloque de tφtulos? <"
  696.           temp ">: "))
  697.         )
  698.         (if mv_uxr
  699.           (if (= temp "Insertar")
  700.             (setq mv_uxr nil)
  701.             (setq mv_uxr T)
  702.           )
  703.           (if (= temp "RefX")
  704.             (setq mv_uxr T)
  705.             (setq mv_uxr nil)
  706.           )
  707.         )
  708.       )
  709.       (T
  710.         (setq cont nil)
  711.       )
  712.     )
  713.   )
  714. )
  715. ;;;
  716. ;;; Return the first path in ACADPREFIX delimited by `;'.
  717. ;;;
  718. ;;; mv_cpf == MView_Check_acadPreFix
  719. ;;;
  720. (defun mv_cpf (pf / temp)
  721.   (setq j 1
  722.         l (strlen pf)
  723.   )
  724.   (while (<= j l)
  725.     (if (= (substr pf j 1) ";")
  726.       (progn
  727.         (setq temp (substr pf 1 (1- j)))
  728.         (setq j (1+ l))
  729.       )
  730.       (setq j (1+ j))
  731.     )
  732.   )
  733.   (if temp
  734.     temp
  735.     pf
  736.   )
  737. )
  738. ;;;
  739. ;;; Verify the Mview viewport whose number we have in vp_n.
  740. ;;;
  741. ;;; mv_vvp == MView_Verify_ViewPort
  742. ;;;
  743. (defun mv_vvp (num sset / j vp ss_len cont)
  744.   (setq ss_len (sslength sset)
  745.         j      0
  746.         cont   T
  747.   )
  748.   (while (and cont (< j ss_len))
  749.     (setq temp (entget (ssname sset j)))
  750.     (setq j (1+ j))
  751.     (if (= (cdr(assoc 68 temp)) 2)
  752.       (setq vp temp)
  753.     )
  754.     (if (= (cdr(assoc 69 temp)) num)
  755.       (setq cont nil
  756.             vp   temp
  757.       )
  758.     )
  759.   )
  760.   (cdr(assoc 69 vp))
  761. )
  762. ;;;
  763. ;;; Align viewport geometry
  764. ;;;
  765. ;;; mv_vpa == MView_ViewPort_Align
  766. ;;;
  767. (defun mv_vpa ( / temp temp1 ans p1 pt1 p2 a1 d1)
  768.   (setq temp T)
  769.   (while temp
  770.     (initget "Angulo hOrizontal Girar aLineaci≤n desHacer")
  771.     (setq ans (getkword 
  772.       "\nAngulo/hOrizontal/aLineaci≤n vertical/Girar vista/desHacer: "))
  773.     (if (or (= ans "") (= ans "Girar") (= ans "desHacer") (null ans))
  774.       (if (= ans "Girar")
  775.         (progn
  776.           (princ "\nDetermine la ventana grßfica en la que quiere girar la vista... ")
  777.           (command "_.MSPACE")
  778.           (command "_.UCS" "_W")
  779.           (setq p1 (getpoint "\nPunto base: "))
  780.           (setq temp (getvar "cvport"))
  781.           (command "_.UCS" "_V")
  782.           (setq a1 (getangle (trans p1 0 1) "\nAngulo desde el punto base: "))
  783.           (command "_.DVIEW" ""  "_TW" (* a1 (/ 180 pi)) "")
  784.           (command "_.UCS" "_P")
  785.           (command "_.UCS" "_P")
  786.           (command "_.PSPACE")
  787.         )
  788.         (if (= ans "desHacer")
  789.           (cond
  790.             ((= uctr 0) (princ "\nNada por deshacer: \n") )
  791.             ((> uctr 0) 
  792.               (command "_.U")
  793.               (setq uctr   (- uctr 1)
  794.                     ll_crn nil
  795.             )
  796.             )
  797.           ) 
  798.           (setq temp nil)
  799.         )
  800.       )
  801.       (progn
  802.         (command "_.UNDO" "_GROUP")
  803.         (setq uctr (1+ uctr))
  804.         (command "_.MSPACE")
  805.         (command "_.UCS" "_W")
  806.         (setq p1 (getpoint "\nPunto base: "))
  807.         (setq pt1 (trans (trans p1 1 2) 2 3))
  808.         (setq temp (getvar "cvport"))
  809.         
  810.         (setq p2 (getpoint "\nOtro punto: "))
  811.         (setq p2 (trans (trans p2 1 2) 2 3))
  812.         (cond 
  813.           ((= ans "Angulo")
  814.             (setq temp1 (getvar "cvport"))
  815.             (if (= temp1 temp)
  816.               (princ "\nLos puntos deben marcarse en ventanas distintas. ")
  817.               (progn
  818.                 (setvar "cvport" temp) 
  819.                 (setvar "orthomode" 0) 
  820.                 (princ (strcat
  821.                   "\nEspecifique la distancia y el ßngulo "
  822.                   "para el nuevo punto de alineaci≤n "))  
  823.                 (princ (strcat
  824.                   "\nen la ventana grßfica actual en la "
  825.                   "que se ha especificado el punto base. "))
  826.                 (setq d1 (getdist "\nDistancia desde el punto base: "))
  827.                 (setq a1 (getangle "\nAngulo desde el punto base: "))
  828.                 (setq p1 (polar p1 a1 d1))
  829.                 (setq p1 (trans (trans p1 1 2) 2 3))
  830.                 (setvar "cvport" temp1) 
  831.                 (command "_.UCS" "_V")
  832.                 (command "_.PAN" (trans p2 3 2) (trans p1 3 2))
  833.               )
  834.             )
  835.           )
  836.           ((= ans "hOrizontal")
  837.             (setq temp1 (getvar "cvport"))
  838.             (command "_.UCS" "_V")
  839.             (setq p1 (list (car p2) (cadr pt1) (caddr p2)))
  840.             (if (= temp1 temp)
  841.               (princ "\nLos puntos deben marcarse en ventanas distintas. ")
  842.               (command "_.PAN" (trans p2 3 2) (trans p1 3 2))
  843.             )
  844.           )
  845.           ((= ans "aLineaci≤n")
  846.             (setq temp1 (getvar "cvport"))
  847.             (command "_.UCS" "_V")
  848.             (setq p1 (list (car pt1) (cadr p2) (caddr p2)))
  849.             (if (= temp1 temp)
  850.               (princ "\nLos puntos deben marcarse en ventanas distintas. ")
  851.               (command "_.PAN" (trans p2 3 2) (trans p1 3 2))
  852.             )
  853.           )
  854.           (T
  855.             (setq temp nil)
  856.           )
  857.         )
  858.         (command "_.UCS" "_P")
  859.         (command "_.UNDO" "_EN")
  860.       )
  861.     )
  862.   )
  863. )
  864. ;;;
  865. ;;; Read lines from a file until the argument matches the given sub-string
  866. ;;;
  867. ;;; mv_rux == MView_Read_Until_Xx_found
  868. ;;;
  869. (defun mv_rux (str j k / l cont line)
  870.   (setq cont T l 1)
  871.   (while cont
  872.     (setq line (read-line deffi))
  873.     (setq l (1+ l))
  874.     ;; Seek to the first instance of str at position j - k.
  875.     (if line
  876.       (if (= (substr line j k) str)
  877.         (setq cont nil)
  878.       )
  879.       (progn
  880.         (setq cont nil l nil)
  881.       )
  882.     )
  883.   )
  884.   l                                   ; Return nil or line number where 
  885.                                       ; matching string is found
  886. )
  887. ;;;
  888. ;;; Tokenize the line, removing any blanks not within the string.
  889. ;;; Return the tokenized list of strings found.
  890. ;;;
  891. ;;; mv_tok == MView_TOKenize
  892. ;;;
  893. (defun mv_tok (str / sl j str_list)
  894.   (setq s_list (mv_tkw str))
  895.   (setq list_l (length s_list)
  896.         j      0
  897.   )
  898.   (while (< j list_l)
  899.     (setq s_list (subst (mv_tki (nth j s_list)) (nth j s_list) s_list))
  900.     (setq j (1+ j))
  901.   )
  902.   s_list
  903. )
  904. ;;;
  905. ;;; Tokenize the item, removing any leading and trailing blanks.
  906. ;;; Return the string.
  907. ;;;
  908. ;;; mv_tki == MView_ToKenize_Item
  909. ;;;
  910. (defun mv_tki (str / sl j k str_list)
  911.   (setq sl (strlen str)
  912.         j  1
  913.         k  0
  914.   )
  915.   (while (and (< j sl) (= (substr str j 1) " "))
  916.     (setq j (1+ j))
  917.   )
  918.   (while (and (< k sl) (= (substr str (- sl k) 1) " "))
  919.     (setq k (1+ k))
  920.   )
  921.   (substr str j (- sl k))
  922. )
  923. ;;;
  924. ;;; Tokenize a string into a list of strings.
  925. ;;; Return the tokenized string list.
  926. ;;;
  927. ;;; mv_tkw == MView_ToKenize_into_Words
  928. ;;;
  929. (defun mv_tkw (str / sl k)
  930.   (setq sl (strlen str)
  931.         k  0
  932.   )
  933.   (while (and (< k sl) (/= (substr str (1+ k) 1) ","))
  934.     (setq k (1+ k))
  935.   )
  936.   (if str_list 
  937.     (setq str_list (append str_list (list (substr str 1 k))))
  938.     (setq str_list (list (substr str 1 k)))
  939.   )
  940.   (setq k (+ k 2))
  941.   (if (< k sl)
  942.     (mv_tkw (substr str k))
  943.   )
  944.   str_list
  945. )
  946. ;;;
  947. ;;; List names on the screen until an end of list marker is found.
  948. ;;; Store the items found into a list, ITEM_LIST, a global
  949. ;;; Ignore blank lines and commented lines. Return number of lines.
  950. ;;;
  951. ;;; mv_lns == MView_List_Names_on_Screen
  952. ;;;
  953. (defun mv_lns (str j k / l cont line)
  954.   (setq cont T l -1)
  955.   (while cont
  956.     (if (setq line (read-line deffi))
  957.       ;; Seek to the end of the section delimited by "str"
  958.       ;; Else print the line to the screen preceded by an integer
  959.       (if (= (substr line j k) str)
  960.         (setq cont nil)
  961.         (progn
  962.           (setq l         (1+ l)
  963.                 new_line  (mv_tok line)
  964.                 item      (car new_line)
  965.                 ITEM_LIST (if ITEM_LIST
  966.                             (append ITEM_LIST (list new_line))
  967.                             (list new_line)
  968.                           )
  969.           )
  970.           (if (and (= (rem l 10) 1) (> l 1))
  971.             (if (= (rem l 20) 1)
  972.               (progn
  973.                 (princ "\n<mßs> ")
  974.                 (grread)
  975.               )
  976.               (terpri)
  977.             )
  978.           )
  979.           (princ (strcat "\n\t" (itoa l) ":\t " item))
  980.         )
  981.       )
  982.       (setq cont nil)
  983.     )
  984.   )
  985.   l
  986. )
  987. ;;;
  988. ;;; Add an entry to the default file.  Get all inputs.
  989. ;;;
  990. ;;; mv_aef == MView_Add_an_Entry_to_default_File
  991. ;;;
  992. (defun mv_aef ( / str ans deffo p1 p2)
  993.   (setq ans (getstring T "\nDescripci≤n del bloque de tφtulos: "))
  994.   (if (not (or (= ans "") (null ans))) 
  995.     (progn
  996.       (setq str ans)
  997.       (setq ans (getstring "\nDibujo a insertar (sin extensi≤n): "))
  998.       (if (not (or (= ans "") (null ans))) 
  999.         (progn
  1000.           (initget "Sφ No")
  1001.           (setq p1 (getkword "\n┐Especificar el ßrea utilizable por defecto? <S>: "))
  1002.           (if (= p1 "No")
  1003.             (setq str (strcat str "," ans ".dwg" "," mv_utr))
  1004.             (progn
  1005.               (initget 1)
  1006.               (setq p1 (getpoint "\nEsquina inferior izquierda: "))
  1007.               (initget 1)
  1008.               (setq p2 (getcorner p1 "\nEsquina superior derecha: "))
  1009.               (mv_s2p 'p1 'p2)
  1010.               (setq str (strcat str "," ans ".dwg" 
  1011.                                 ",(" (rtos (car p1))
  1012.                                 " " (rtos (cadr p1))
  1013.                                 " " (rtos (caddr p1))
  1014.                                 ")"
  1015.                                 ",(" (rtos (car p2))
  1016.                                 " " (rtos (cadr p2))
  1017.                                 " " (rtos (caddr p2))
  1018.                                 ")"
  1019.                                 "," mv_utr))
  1020.             )
  1021.           )
  1022.           (setq deffi (close deffi))
  1023.           (if (setq deffi (mv_lfx mv_xdf "r"))
  1024.             (if (setq deffo (mv_lfx "temp.tdf" "w"))
  1025.               (progn
  1026.                 (setq cur_ln (+ cur_ln max_l))
  1027.                 (repeat cur_ln (progn
  1028.                   (write-line (read-line deffi) deffo)
  1029.                 ))
  1030.                 (write-line str deffo)
  1031.                 (while (setq line (read-line deffi))
  1032.                   (write-line line deffo)
  1033.                 )
  1034.               )
  1035.             )
  1036.           )
  1037.           (setq deffo (close deffo))
  1038.           (setq deffi (close deffi))
  1039.           (if (setq deffi (mv_lfx "temp.tdf" "r"))
  1040.             (if (setq deffo (mv_lfx mv_xdf "w"))
  1041.               (while (setq line (read-line deffi))
  1042.                 (write-line line deffo)
  1043.               )
  1044.             )
  1045.           )
  1046.           (setq deffo (close deffo))
  1047.           (setq deffi (close deffi))
  1048.           (command "_.FILES" "3" "temp.tdf" "" "")
  1049.           (textpage)
  1050.         )
  1051.       )
  1052.     )
  1053.   )
  1054. )
  1055. ;;;
  1056. ;;; Subtract an entry from the default file.  Get all inputs.
  1057. ;;;
  1058. ;;; mv_sef == MView_Subtract_an_Entry_from_default_File
  1059. ;;;
  1060. (defun mv_sef ( / str ans deffo)
  1061.   (setq str (nth 0 d_item_list))
  1062.   (setq deffi (close deffi))
  1063.   (if (setq deffi (mv_lfx mv_xdf "r"))
  1064.     (if (setq deffo (mv_lfx "temp.tdf" "w"))
  1065.       (progn
  1066.         (setq cur_ln (mv_rux str 1 (strlen str)))
  1067.         (setq cur_ln (- cur_ln 2))
  1068.         (close deffi)
  1069.         (setq deffi (mv_lfx mv_xdf "r"))
  1070.  
  1071.         (repeat cur_ln (progn
  1072.           (write-line (read-line deffi) deffo)
  1073.         ))
  1074.         (read-line deffi)
  1075.         (while (setq line (read-line deffi))
  1076.           (write-line line deffo)
  1077.         )
  1078.       )
  1079.     )
  1080.   )
  1081.   (setq deffo (close deffo))
  1082.   (setq deffi (close deffi))
  1083.   (if (setq deffi (mv_lfx "temp.tdf" "r"))
  1084.     (if (setq deffo (mv_lfx mv_xdf "w"))
  1085.       (while (setq line (read-line deffi))
  1086.         (write-line line deffo)
  1087.       )
  1088.     )
  1089.   )
  1090.   (setq deffo (close deffo))
  1091.   (setq deffi (close deffi))
  1092.   (command "_.FILES" "3" "temp.tdf" "" "")
  1093.   (textpage)
  1094.   (setq deffi (mv_lfx mv_xdf "r"))
  1095.  
  1096.   (princ)
  1097. )
  1098. ;;;
  1099. ;;; Pick from the list by typing an integer, returns the item or zero.
  1100. ;;; cont is global to this routine, local to the calling routine.
  1101. ;;;
  1102. ;;; mv_pfl == MView_Pick_From_List
  1103. ;;;
  1104. (defun mv_pfl (max_l ig_b ig_str prmpt / OK ans return str)
  1105.   (while (null OK)
  1106.     (initget ig_b ig_str)
  1107.     (setq ans (getint prmpt))
  1108.     (cond 
  1109.       ((or (= ans "") (null ans))
  1110.         (setq OK T cont nil return 0)
  1111.       )
  1112.       ((= ans "A±adir")
  1113.         (mv_aef)
  1114.         (setq OK T)
  1115.       )
  1116.       ((= ans "Borrar")
  1117.         (setq str "\nN·mero de entradas a borrar de la lista: ")
  1118.         (setq d_item_list (mv_pfl max_l 6 "" str))
  1119.         (if d_item_list
  1120.           (progn
  1121.             (princ (strcat "\nBorrando " (car d_item_list) " de la lista. "))
  1122.             (mv_sef)
  1123.           )
  1124.         )
  1125.         (setq OK T cont T return 0)
  1126.       )
  1127.       ((= ans "Redibujar")
  1128.         (setq OK T)
  1129.       )
  1130.       (T
  1131.         (if (and (>= ans 0) (<= ans max_l))
  1132.           (setq return (nth ans ITEM_LIST)
  1133.                 OK     T
  1134.                 cont   nil
  1135.           )
  1136.           (progn
  1137.             (princ (strcat 
  1138.               "\nEl n·mero debe situarse entre 0 y " (itoa max_l) "\n"))
  1139.             (setq OK nil)
  1140.           )
  1141.         )
  1142.       )
  1143.     )
  1144.   )
  1145.   return
  1146. )
  1147. ;;;
  1148. ;;; Get the user's options
  1149. ;;;
  1150. ;;; mv_gop == MView_Get_OPtions
  1151. ;;;
  1152. (defun mv_gop (/ deffi d_item_name max_lines ans cont isc fsc mmsc msc li ll)
  1153.   (if (setq deffi (mv_lfx mv_xdf "r"))
  1154.     (progn
  1155.       
  1156.       (textpage)
  1157.       (setq str1 "\nOpciones de bloque de tφtulos: \n")
  1158.       
  1159.       (setq d_item_list (mv_pao "NAMES" str1))
  1160.       
  1161.       (if (and (= (type d_item_list) 'LIST) (null skip))
  1162.         (progn
  1163.           (mv_tbi)
  1164.           (setq ll (length d_item_list)
  1165.                 li (nth 2 d_item_list)
  1166.           )
  1167.           (if li                      ; ll is > 2
  1168.             (progn
  1169.               (if (= (type (read li)) 'LIST)
  1170.                 (progn
  1171.                   (setq ll_crn li)
  1172.                   (if (> ll 3)
  1173.                     (setq ur_crn (nth 3 d_item_list)
  1174.                           li     (nth 4 d_item_list)
  1175.                     )
  1176.                     (setq ll_crn nil ur_crn nil)
  1177.                   )
  1178.                 )
  1179.               )
  1180.               (if (= (type ur_crn) 'STR)
  1181.                 (setq ll_crn (read ll_crn)
  1182.                       ur_crn (read ur_crn)
  1183.                 )
  1184.               )
  1185.               ;;; Force the right units to be used for the scaling
  1186.               (cond
  1187.                 ((= li "mm")
  1188.                   (if (= (strcase mv_utr T) "in")
  1189.                     (setq mv_utr "mm")
  1190.                   )
  1191.                 )
  1192.                 ((= li "in")
  1193.                   (if (= (strcase mv_utr T) "mm")
  1194.                     (setq mv_utr "in")
  1195.                   )
  1196.                 )
  1197.               )
  1198.               (cond
  1199.                 ((= (strcase mv_utr T) "mm")
  1200.                   (setq isc   25.4
  1201.                         mmsc  1.0
  1202.                         msc   1000.0
  1203.                         fsc   (* 12 25.4)
  1204.                   )
  1205.                 )
  1206.                 ((= (strcase mv_utr T) "m")
  1207.                   (setq isc   (/ 25.4 1000)
  1208.                         mmsc  (/ 1.0 1000)
  1209.                         msc   1.0
  1210.                         fsc   (/ (* 12 25.4) 1000)
  1211.                   )
  1212.                 )
  1213.                 ((= (strcase mv_utr T) "ft")
  1214.                   (setq isc   (/ 1.0 12)
  1215.                         mmsc  (/ 1.0 (* 12 25.4))
  1216.                         msc   (/ 1000.0 (* 12 25.4))
  1217.                         fsc   1.0
  1218.                   )
  1219.                 )
  1220.                 ((= (strcase mv_utr T) "in")
  1221.                   (setq isc   1.0
  1222.                         mmsc  (/ 1.0 25.4)
  1223.                         msc   (/ 1000.0 25.4)
  1224.                         fsc   12.0
  1225.                   )
  1226.                 )
  1227.                 (T
  1228.                   (princ "\nError: tipo de unidades no especificado en el archivo por defecto.")
  1229.                   (exit)
  1230.                 )
  1231.               )
  1232.             )
  1233.           )
  1234.           (cond             
  1235.             ((= li "in")                 ; And are defined in inches
  1236.               (command "_.SCALE" (entlast) "" "0,0" isc)
  1237.               (setq ll_crn (mapcar '(lambda (x) (* x isc)) ll_crn))
  1238.               (setq ur_crn (mapcar '(lambda (x) (* x isc)) ur_crn))
  1239.             )
  1240.             ((= li "ft")                 ; And are defined in feet
  1241.               (command "_.SCALE" (entlast) "" "0,0" fsc)
  1242.               (setq ll_crn (mapcar '(lambda (x) (* x fsc)) ll_crn))
  1243.               (setq ur_crn (mapcar '(lambda (x) (* x fsc)) ur_crn))
  1244.             )
  1245.             ((= li "mm")                 ; And are defined in millimeters
  1246.               (command "_.SCALE" (entlast) "" "0,0" mmsc)
  1247.               (setq ll_crn (mapcar '(lambda (x) (* x mmsc)) ll_crn))
  1248.               (setq ur_crn (mapcar '(lambda (x) (* x mmsc)) ur_crn))
  1249.             )
  1250.             ((= li "M")                 ; And are defined in meters
  1251.               (command "_.SCALE" (entlast) "" "0,0" msc)
  1252.               (setq ll_crn (mapcar '(lambda (x) (* x msc)) ll_crn))
  1253.               (setq ur_crn (mapcar '(lambda (x) (* x msc)) ur_crn))
  1254.             )
  1255.           )
  1256.           (command "_.ZOOM" "_E")
  1257.           (if mv_slr                      ; Set Limits requested
  1258.             (progn
  1259.               (setq temp (getvar "EXTMIN"))
  1260.               (setvar "LIMMIN" (list (car temp) (cadr temp)))
  1261.               (setq temp (getvar "EXTMAX"))
  1262.               (setvar "LIMMAX" (list (car temp) (cadr temp)))
  1263.             )
  1264.           )
  1265.         )
  1266.       )
  1267.       (setq ITEM_LIST nil)
  1268.  
  1269.       (setq deffi (close deffi))
  1270.       
  1271.     )
  1272.     (princ (strcat "\nImposible abrir el archivo " mv_xdf " para lectura. "))
  1273.   )
  1274. )
  1275. ;;;
  1276. ;;; Pick options
  1277. ;;;
  1278. ;;; mv_pao == MView_Pick_An_Option
  1279. ;;;
  1280. (defun mv_pao (str str1 / cont max_lines d_item_list)
  1281.   (setq cont T)
  1282.   (while cont
  1283.     (princ str1)
  1284.     (setq cur_ln (mv_rux str 1 (strlen str)))
  1285.     (setq ITEM_LIST nil)
  1286.     (setq max_lines (mv_lns (strcat "END_" str) 
  1287.                                           1 (+ 4 (strlen str))))
  1288.     (if (= str "MVIEWS")
  1289.       (setq d_item_list (mv_pfl max_lines 4 "Redibujar"  
  1290.         "\n\nRedibujar/<n·mero de la entrada a cargar>: "))
  1291.       (setq d_item_list (mv_pfl max_lines 4 "A±adir Redibujar Borrar"  
  1292.         "\n\nA±adir/Borrar/Redibujar/<n·mero de la entrada a cargar>: "))
  1293.     )
  1294.     ;; 
  1295.     ;; Skip the title block insertion if "None" is selected.
  1296.     ;;
  1297.     (if (and (= (type d_item_list) 'LIST) (= (car d_item_list) "Ninguno"))
  1298.       (setq skip T)
  1299.       (setq skip nil)
  1300.     )
  1301.     ;;
  1302.     ;; If the Redisplay option is chosen, rewind the file by
  1303.     ;; Closing it, opening it again, and seeking to the start
  1304.     ;; of the NAMES section again.
  1305.     ;;
  1306.     (if cont
  1307.       (progn
  1308.         (if deffi (setq deffi (close deffi)))
  1309.         (if (null (setq deffi (mv_lfx mv_xdf "r")))
  1310.           (progn
  1311.             (princ (strcat "\nImposible abrir  " mv_xdf " para lectura."))
  1312.             (setq cont nil)
  1313.           )
  1314.         )
  1315.       )
  1316.     )
  1317.   )
  1318.   d_item_list
  1319. )
  1320. ;;;
  1321. ;;; Title block insertion
  1322. ;;; Check that the drawing exists and if not, try to create it
  1323. ;;; from the definition, if it can be found.  If not,
  1324. ;;; reject the selection.  If there is a definition, then
  1325. ;;; execute it and perform the WBLOCK command, then
  1326. ;;; insert the resulting block.
  1327. ;;;
  1328. ;;; mv_tbi == MView_Title_Block_Insertion
  1329. ;;;
  1330. (defun mv_tbi ()
  1331.   ;; If an alternate layer has been specified, then set that layer for the
  1332.   ;; subsequent title block insertion or Xref.
  1333.   (if mv_nln
  1334.     (command "_.LAYER" "_SET" mv_nln "")
  1335.   )
  1336.   ;; 
  1337.   ;; a definition in the default file.  If that fails, then  
  1338.   
  1339.   (if (> (length d_item_list) 1) 
  1340.     (if (setq block_name (findfile (nth 1 d_item_list)))
  1341.       (if mv_uxr
  1342.         (mv_xtb block_name)
  1343.         (mv_itb block_name)
  1344.       )
  1345.       ;; Block named not found;  try to create it...
  1346.       (progn
  1347.         (setq block_name (nth 1 d_item_list))
  1348.         (setq e_last (cdr(assoc -1 (entget(entlast)))))
  1349.         (setq item_name (strcat "NAME - " (nth 0 d_item_list)))
  1350.         (if (mv_rux item_name 1 (strlen item_name))
  1351.           (mv_cfd)
  1352.         )
  1353.         (if (not (eq (cdr(assoc -1 (entget(entlast)))) e_last))
  1354.           (progn
  1355.             (setq sset (ssadd))   ; Create a null selection set.
  1356.             (while (setq e_last (if e_last (entnext e_last) (entnext)))
  1357.               (ssadd e_last sset) ; Add new entities to end of database.
  1358.             )
  1359.             (initget "Sφ No")
  1360.             (setq ans (getkword (strcat
  1361.               "\n┐Crear un dibujo llamado " block_name "? <S>: ")))
  1362.             (if (/= ans "No")
  1363.               (progn
  1364.                 (command "_.WBLOCK" block_name "" "0,0" sset "")
  1365.                 (if mv_uxr
  1366.                   (mv_xtb block_name)
  1367.                   (mv_itb block_name)
  1368.                 )
  1369.               )
  1370.               ;; Else do nothing...
  1371.             )
  1372.           )
  1373.           (progn
  1374.             (princ (strcat
  1375.               "\nImposible encontrar una definici≤n para el bloque " block_name ". "))
  1376.             ;;(exit)
  1377.           )
  1378.         )
  1379.       )
  1380.     )
  1381.     (progn
  1382.       (setq d_item_list (strcat "NAME - " (nth 0 d_item_list)))
  1383.       (if (mv_rux d_item_list 1 (strlen d_item_list))
  1384.         (mv_cfd)
  1385.       )
  1386.     )
  1387.   )
  1388.   (if mv_nln
  1389.     (command "_.LAYER" "_SET" mv_oln "") ; Reset old layer
  1390.   )
  1391. )
  1392. ;;;
  1393. ;;; Insert title blocks which may have variable attributes.
  1394. ;;;
  1395. ;;; mv_itb == MView_Insert_Title_Block
  1396. ;;;
  1397. (defun mv_itb (block_name / b_def b_nam hasatt temp cont count)
  1398.   ;; Cancel the block command after inserting the block definition.
  1399.   (command "_.INSERT" block_name \03)
  1400.   ;; Strip name of path and extension.
  1401.   (setq b_nam (substr block_name 1 (setq sl (- (strlen block_name) 4))))
  1402.   (setq cont T temp "")
  1403.   (while (and cont (> sl 0) (setq ch (substr b_nam sl 1)))
  1404.     (if (or (= ch "\\") (= ch "/") (= ch ":"))
  1405.       (setq cont nil)
  1406.       (setq temp (strcat ch temp)
  1407.             sl   (1- sl)
  1408.       )
  1409.     )
  1410.   )
  1411.   (setq oarq (getvar "attreq"))
  1412.   (setq otev (getvar "texteval"))
  1413.   (setvar "attreq" 1)
  1414.   (setq b_nam temp)
  1415.   ;; Check for trailing attributes.
  1416.   (setq b_def (tblsearch "block" b_nam))
  1417.   (setq hasatt (if (= (logand (cdr(assoc 70 b_def)) 2) 2) T nil))
  1418.   (if hasatt
  1419.     (progn
  1420.       (setq temp (entget(cdr(assoc -2 b_def)))
  1421.           cont   T
  1422.           count  0
  1423.       )
  1424.       (while (or cont (and temp (/= (cdr(assoc 0 temp)) "SEQEND")))
  1425.         (if (and (= (cdr(assoc 0 temp)) "ATTDEF") 
  1426.                  (/= (logand (cdr(assoc 70 temp)) 2) 2)
  1427.                  (/= (logand (cdr(assoc 70 temp)) 8) 8)
  1428.             )
  1429.           (setq count (1+ count)
  1430.                 cont nil
  1431.           )
  1432.         )
  1433.         (setq temp (entnext (cdr(assoc -1 temp))))
  1434.         (if temp (setq temp (entget temp)))
  1435.       )
  1436.       (setq temp "(command")
  1437.       (repeat (1- count)
  1438.         (setq temp (strcat temp " pausa"))
  1439.       )
  1440.       (setq temp (strcat temp ")"))
  1441.     )
  1442.   )
  1443.   ;; Insert the block
  1444.   (command "_.INSERT" block_name "0,0" "" "")
  1445.   ;; If there are attributes, insert 'em...
  1446.   (if hasatt
  1447.     (progn
  1448.       (setvar "texteval" 1)
  1449.       (setvar "cmdecho" 1)            ; Turn on command echoing
  1450.     )
  1451.   )
  1452.   ;; Note the peculiar order of "cmdecho" and (command) 
  1453.   ;; Finish
  1454.   (command "")
  1455.   (if hasatt
  1456.     (eval(read temp))
  1457.   )
  1458.   (setvar "cmdecho" 0)                ; Turn off command echoing
  1459.   (if hasatt
  1460.     (command pause)
  1461.   )
  1462.   (setvar "attreq" oarq)
  1463.   (setvar "texteval" otev)
  1464. )
  1465. ;;;
  1466. ;;; Xref title blocks; variable attributes are ignored.
  1467. ;;;
  1468. ;;; mv_xtb == MView_Xref_Title_Block
  1469. ;;;
  1470. (defun mv_xtb (block_name / b_def b_nam hasatt temp cont count)
  1471.   ;; Insert the block
  1472.   (command "_.XREF" "_ATTACH" block_name "0,0" "" "" "0")
  1473. )
  1474. ;;;
  1475. ;;; Create the mview viewports.
  1476. ;;;
  1477. ;;; mv_mvi == MView_MView_Insertion
  1478. ;;;
  1479. (defun mv_mvi (/ n_vp_x n_vp_y i_l_len view_n p1 p2 ok_size)
  1480.   (if (> (length vp_item_list) 0) 
  1481.     (progn
  1482.       (if (> (length vp_item_list) 2) 
  1483.         (setq n_vp_x (nth 1 vp_item_list)
  1484.               n_vp_y (nth 2 vp_item_list)
  1485.         )
  1486.       )
  1487.       (if (> (setq i_l_len (length vp_item_list)) 3) 
  1488.         (setq view_n (- i_l_len 3))  ; Number of views defined.
  1489.         (setq view_n 0)
  1490.       )
  1491.       (setq d_item_name (strcat "VPSETNAME  - " (nth 0 vp_item_list)))
  1492.       (if (mv_rux d_item_name 1 (strlen d_item_name))
  1493.         (progn
  1494.           (mv_gba)                    ; Get bounding area
  1495.           (mv_s2p 'mvs_p1 'mvs_p2)
  1496.           (mv_gnv)                    ; Get number of viewport
  1497.           (mv_gid)                    ; Get interstitial distances
  1498.           (mv_cfp)                    ; Calculate first points
  1499.           (mv_cba)                    ; Check area is on-screen
  1500.           (setvar "osmode" 0)
  1501.           (command "_.MVIEW" p1 p2)
  1502.           (if (> (cdr (assoc 68 (entget (entlast)))) 0)
  1503.             (progn
  1504.               (setq ok_size T)
  1505.               (mv_cna)                ; Check number of active viewports
  1506.             )
  1507.           )
  1508.           (setq f_vp_n (mv_gvn))      ; Get viewport number
  1509.           (mv_avp)                    ; Array other Mview viewports
  1510.           (setq l_vp_n (mv_gvn))      ; Get viewport number
  1511.           (if (and (not ok_size) (> i_l_len 3))
  1512.               (princ "\n Ventana demasiado peque±a para cambiar vistas.")
  1513.               (mv_cav)                ; Change the view of all viewports
  1514.           )
  1515.         )
  1516.       )
  1517.     )
  1518.   )
  1519. )
  1520. ;;;
  1521. ;;; Set the zoom scale factors for a set of viewports.
  1522. ;;;
  1523. ;;; mv_szs == MView_Set_Zoom_Scales
  1524. ;;;
  1525. (defun mv_szs ( / temp)
  1526.   (command "_.UNDO" "_GROUP")
  1527.   (setq uctr (1+ uctr))
  1528.   (if (/= (getvar "cvport") 1)
  1529.     (command "_.PSPACE")
  1530.   )
  1531.   (princ "\nSeleccione las ventanas a poner a escala... ")
  1532.   (setq sset (ssget '((0 . "VIEWPORT") (-4 . "<NOT") (69 . 1) (-4 . "NOT>"))))
  1533.   (if sset
  1534.     (progn
  1535.       (if (> (sslength sset) 1)
  1536.         (progn
  1537.           (initget "Interactivamente Uniforme")
  1538.           (setq ans (getkword (strcat
  1539.             "\nEstablecer factores de escala de zoom para las ventanas.  "
  1540.             "Interactivamente/<Uniforme>: "))
  1541.           )
  1542.           (if (= ans "Interactivamente")
  1543.             (setq vp_s_i T)
  1544.             (setq vp_s_i nil)
  1545.           )
  1546.         )
  1547.         (setq vp_s_i nil)
  1548.       )
  1549.       (setq temp (sslength sset)
  1550.             j    0
  1551.       )
  1552.       (if (= (getvar "cvport") 1)
  1553.         (command "_.MSPACE")
  1554.       )
  1555.       (while (< j temp)
  1556.         (progn
  1557.           (setq vp_n (cdr(assoc 69 (entget(ssname sset j)))))
  1558.           (setvar "cvport" vp_n)
  1559.           (setq j (1+ j))
  1560.           (if (or vp_s_i (< j 2))
  1561.             (mv_ssi)
  1562.           )
  1563.           (command "_.ZOOM" (strcat (mv_sts vp_scale) "xp"))
  1564.         )
  1565.       )
  1566.       (command "_.PSPACE")
  1567.     )
  1568.     (princ "\nNo hay ventanas seleccionadas. ")
  1569.   )
  1570.   (command "_.UNDO" "_EN")
  1571. )
  1572. ;;;
  1573. ;;; Interactively set the scale of each viewport.
  1574. ;;;
  1575. ;;; mv_ssi == MView_Setup_Scale_Interactively
  1576. ;;;
  1577. (defun mv_ssi (/ ans)
  1578.   (princ "\nRelaci≤n entre unidades en Espacio papel/unidades en Espacio modelo... ")
  1579.   (initget 6)
  1580.   (setq ans (getreal 
  1581.     "\nN·mero de unidades en Espacio papel.  <1.0>: ")
  1582.   )
  1583.   (if (= (type ans) 'REAL)
  1584.     (setq vp_scale ans)
  1585.     (setq vp_scale 1.0)
  1586.   )
  1587.   (initget 6)
  1588.   (setq ans (getreal 
  1589.     "\nN·mero de unidades en Espacio modelo.  <1.0>: ")
  1590.   )
  1591.   (if (= (type ans) 'REAL)
  1592.     (setq vp_scale (/ vp_scale ans))
  1593.     (setq vp_scale (/ vp_scale 1.0))
  1594.   )
  1595.   vp_scale
  1596. )
  1597. ;;;
  1598. ;;; Set up the scale either interactively or uniformly.
  1599. ;;;
  1600. ;;; mv_sus == MView_Set_Up_Scale
  1601. ;;;
  1602. (defun mv_sus ()
  1603.   (if vp_s_i
  1604.     (mv_ssi)
  1605.   )
  1606.     (setq vp (mv_gvp (+ n vp_n) sset))
  1607.   (command "_.ZOOM" (strcat (mv_sts vp_scale) "xp"))
  1608. )
  1609. ;;;
  1610. ;;; Convert a real number to its shortest value; no trailing zeros.
  1611. ;;;
  1612. ;;; mv_sts == MView_Scale_To_String
  1613. ;;;
  1614. (defun mv_sts (num / scale j return)
  1615.   (setq scale (rtos num 2 15)
  1616.         j     0
  1617.   )
  1618.   (while (< j (strlen scale))
  1619.     (if (= (setq return (substr scale (- (strlen scale) j) 1)) "0")
  1620.       (setq j (1+ j))
  1621.       (if (= return ".")
  1622.         (progn
  1623.           (setq return (substr scale 1 (- (strlen scale) (1- j)))) 
  1624.           (setq j (strlen scale))
  1625.         )
  1626.         (progn
  1627.           (setq return (substr scale 1 (- (strlen scale) j))) 
  1628.           (setq j (strlen scale))
  1629.         )
  1630.       )
  1631.     )
  1632.   )
  1633.   return
  1634. )
  1635. ;;;
  1636. ;;; Change to a new plan view and restore.
  1637. ;;;
  1638. ;;; mv_npv == MView_set_New_Plan_View
  1639. ;;;
  1640. (defun mv_npv (ord_1 amnt_1 ord_2 amnt_2)
  1641.   (command "_.UCS" ord_1 amnt_1)
  1642.   (command "_.UCS" ord_2 amnt_2)
  1643.   (command "_.PLAN" "" )
  1644.   (command "_.UCS" "_P")
  1645.   (command "_.UCS" "_P")
  1646.   (princ)
  1647. )
  1648. ;;;
  1649. ;;;Get the Mview viewport whose number we have in vp_n.
  1650. ;;;
  1651. ;;; mv_gvp == MView_Get_ViewPort
  1652. ;;;
  1653. (defun mv_gvp (num sset / j vp ss_len cont)
  1654.   (setq ss_len (sslength sset)
  1655.         j      0
  1656.         cont   T
  1657.   )
  1658.   (while (and cont (< j ss_len))
  1659.     (if (= (cdr(assoc 69 (setq vp (entget (ssname sset j))))) num)
  1660.       (setq cont nil)
  1661.     )
  1662.     (setq j (1+ j))
  1663.   )
  1664.   vp
  1665. )
  1666. ;;;
  1667. ;;; Change the view into all Mview viewports.
  1668. ;;;
  1669. ;;; mv_cav == MView_Change_All_Views
  1670. ;;;
  1671. (defun mv_cav (/ n sset vp_n vp m_4_iso)
  1672.   (if need_z
  1673.     (command "_.ZOOM" "_E")
  1674.   )
  1675.   (setq n    0
  1676.         sset (ssget "_x" '((0 . "VIEWPORT")))
  1677.         vp_n f_vp_n
  1678.   )
  1679.   (command "_.MSPACE")
  1680.   ;;(setvar "cvport" vp_n)
  1681.   ;; While we still have both viewports and view definitions for them...
  1682.   (while (and (< n view_n) (<= (+ n vp_n) l_vp_n))
  1683.     (setq vp (mv_gvp (+ n vp_n) sset))
  1684.     (if m_4_iso
  1685.       (command "_.MVIEW" "_on" (cdr (assoc -1 vp)) "")
  1686.     )
  1687.     (setvar "cvport" (+ n vp_n))
  1688.     (cond 
  1689.       ((= (nth (+ 3 n) vp_item_list) "PLAN")
  1690.         (command "_.PLAN" "")
  1691.         ;;(mv_sus)
  1692.       )
  1693.       ((= (nth (+ 3 n) vp_item_list) "FRONT")
  1694.         (mv_npv "x"  "90" "x"  "0") 
  1695.         ;;(mv_sus)
  1696.       )
  1697.       ((= (nth (+ 3 n) vp_item_list) "RIGHT")
  1698.         (mv_npv "z"  "90" "x" "90")
  1699.         ;;Test for case when all 4 viewports can't be on.  We
  1700.         ;;turn this one off so we can continue to the iso view.
  1701.         (if (= maxact 4)
  1702.           (progn
  1703.             (command "_.MVIEW" "_OFF" (cdr (assoc -1 vp)) "")
  1704.             (setq m_4_iso T)
  1705.           )
  1706.         )
  1707.         ;;(mv_sus)
  1708.       )
  1709.       ((= (nth (+ 3 n) vp_item_list) "LEFT")
  1710.         (mv_npv "z" "-90" "x" "90")
  1711.         ;;(mv_sus)
  1712.       )
  1713.       ((= (nth (+ 3 n) vp_item_list) "ISO")
  1714.         (command "_.VPOINT" "_R" "-45" "30")
  1715.         ;;(mv_sus)
  1716.       )
  1717.       (T
  1718.         (princ "\nVista no definida en el archivo por defecto. ")
  1719.         (exit)
  1720.       )
  1721.     )
  1722.     (setq n (1+ n))
  1723.   )
  1724.   (command "_.PSPACE")
  1725. )
  1726. ;;;
  1727. ;;; Array other Mview viewports.
  1728. ;;;
  1729. ;;; mv_avp == MView_Array_ViewPorts
  1730. ;;;
  1731. (defun mv_avp ( / dx dy)
  1732.   (if (and (> (car mvs_p4) 1) (> (cadr mvs_p4) 1))
  1733.     (progn
  1734.       (setq dx (+ (car mvs_p5)  (car mvs_p3)))
  1735.       (setq dy (+ (cadr mvs_p5)  (cadr mvs_p3)))
  1736.       (command "_.ARRAY" 
  1737.                (entlast) "" 
  1738.                "_r" 
  1739.                (cadr mvs_p4)
  1740.                (car mvs_p4) 
  1741.                (+ (cadr mvs_p5) (cadr mvs_p3))
  1742.                (+ (car mvs_p5)  (car mvs_p3))
  1743.       )
  1744.     )
  1745.     (if (> (car mvs_p4) 1)
  1746.       (progn
  1747.         (setq dx (+ (car mvs_p5)  (car mvs_p3)))
  1748.         (command "_.ARRAY" 
  1749.                  (entlast) "" 
  1750.                  "_r" 
  1751.                  (cadr mvs_p4)
  1752.                  (car mvs_p4) 
  1753.                  (+ (car mvs_p5)  (car mvs_p3))
  1754.         )
  1755.       )
  1756.       (if (> (cadr mvs_p4) 1)
  1757.         (progn
  1758.           (setq dy (+ (cadr mvs_p5)  (cadr mvs_p3)))
  1759.           (command "_.ARRAY" 
  1760.                    (entlast) "" 
  1761.                    "_R" 
  1762.                    (cadr mvs_p4)
  1763.                    (car mvs_p4) 
  1764.                    (+ (cadr mvs_p5) (cadr mvs_p3))
  1765.           )
  1766.         )
  1767.       )
  1768.     )
  1769.   )
  1770. )
  1771. ;;;
  1772. ;;; Check the number of active viewports plus the number of new
  1773. ;;; viewports to be created to determine whether the allowable
  1774. ;;; number of active viewports will be exceeded.  If so, noff
  1775. ;;; holds the number of viewports to turn off before creating
  1776. ;;; the rest of the new ones.
  1777. ;;;
  1778. ;;; mv_cna == MView_Check_Number_of_Active_viewports
  1779. ;;;
  1780. (defun mv_cna (/ sset ssl nsset nssl n temp total noff)
  1781.   (setq sset (ssget "_x" '((0 . "viewport")))
  1782.         ssl (sslength sset)
  1783.         nsset (ssadd)
  1784.         n 0
  1785.   )
  1786.   (while (< n ssl)
  1787.     (setq temp (ssname sset n))
  1788.     (if (> (cdr (assoc 68 (entget temp))) 0)
  1789.         (ssadd temp nsset)
  1790.     )
  1791.     (setq n (1+ n))
  1792.   )
  1793.   (if (> (setq total (+ (setq nssl (sslength nsset))
  1794.                         (1- (* (car mvs_p4) (cadr mvs_p4)))
  1795.                      )
  1796.          )
  1797.          (setq maxact (getvar "maxactvp"))
  1798.       )
  1799.       (progn
  1800.         (setq noff (- total maxact)
  1801.               n 1
  1802.         )
  1803.         (if (> maxact 4)
  1804.             (while (and (<= n noff) (< n (1- nssl)))
  1805.               (setq temp (ssname nsset n))
  1806.               (command "_.MVIEW" "_OFF" temp "")
  1807.               (setq n (1+ n))
  1808.             )
  1809.             (while (< n (1- ssl))
  1810.               (setq temp (ssname sset n))
  1811.               (command "_.MVIEW" "_OFF" temp "")
  1812.               (setq n (1+ n))
  1813.             )
  1814.         )
  1815.       )
  1816.   )
  1817. )
  1818. ;;;
  1819. ;;; Get the name of a Mview viewport.
  1820. ;;;
  1821. ;;; mv_gvn == MView_Get_Viewport_Name
  1822. ;;;
  1823. (defun mv_gvn ()
  1824.   (cdr(assoc 69 (entget(entlast))))
  1825. )
  1826. ;;;
  1827. ;;; Calculate the size of the individual viewports from the two
  1828. ;;; corner points, mvs_p1 and mvs_p2, the interstitial distances
  1829. ;;; held in mvs_p3, and the number of viewports held in mvs_p4.
  1830. ;;;
  1831. ;;; mv_cfp == MView_Calculate_First_Points
  1832. ;;;
  1833. (defun mv_cfp (/ x y dx dy )
  1834.   (mv_s2p 'mvs_p1 'mvs_p2)
  1835.   ;; Points are now sorted so that mvs_p1 IS lower left....
  1836.   (setq x  (- (car  mvs_p2) (car  mvs_p1))
  1837.         y  (- (cadr mvs_p2) (cadr mvs_p1))
  1838.         dx (/ (- x (* (1- (car  mvs_p4)) (car  mvs_p3))) (car  mvs_p4))
  1839.         dy (/ (- y (* (1- (cadr mvs_p4)) (cadr mvs_p3))) (cadr mvs_p4))
  1840.         p1 mvs_p1
  1841.         p2 (mapcar '+ p1 (setq mvs_p5  (list dx dy 0)))
  1842.   )
  1843. )
  1844. ;;;
  1845. ;;; Sort two points into lower-left to upper-right order.
  1846. ;;;
  1847. ;;; mv_s2p == MView_Sort_2_Points
  1848. ;;;
  1849. (defun mv_s2p (_p1 _p2 / x y pt1 pt2 )
  1850.   (setq pt1 (eval _p1)
  1851.         pt2 (eval _p2)
  1852.   )
  1853.   (if (> (car pt1) (car pt2))
  1854.     (setq x (car pt1)
  1855.           pt1 (list (car pt2) (cadr pt1) 0.0)
  1856.           pt2 (list x (cadr pt2) 0.0)
  1857.     )
  1858.   )
  1859.   (if (> (cadr pt1) (cadr pt2))
  1860.     (setq x (cadr pt1)
  1861.           pt1 (list (car pt1) (cadr pt2) 0.0)
  1862.           pt2 (list (car pt2) x 0.0)
  1863.     )
  1864.   )
  1865.   (set _p1 pt1)
  1866.   (set _p2 pt2)
  1867. )
  1868. ;;;
  1869. ;;; Get the number of viewports in X and Y.
  1870. ;;; Sets the global mvs_p4 which is a point containing the X and Y
  1871. ;;; amounts as the (car) and (cadr) of mvs_p4.
  1872. ;;;
  1873. ;;; mv_gnv == MView_Get_Number_of_Viewports_in_x_and_y
  1874. ;;;
  1875. (defun mv_gnv (/ )
  1876.   (if n_vp_x
  1877.     (progn
  1878.       (setq mvs_p4 (list (read n_vp_x) (read n_vp_y) 0))
  1879.     )
  1880.     (progn
  1881.       (setq ans (getint "\nN·mero de ventanas en X <1>: "))
  1882.       (if (= (type ans) 'INT)
  1883.         (setq mvs_p4 (list ans))
  1884.         (setq mvs_p4 (list 1))
  1885.       )
  1886.       (setq ans (getint "\nN·mero de ventanas en Y <1>: "))
  1887.       (if (= (type ans) 'INT)
  1888.         (setq mvs_p4 (append mvs_p4 (list ans 0)))
  1889.         (setq mvs_p4 (append mvs_p4 (list 1   0)))
  1890.       )
  1891.     )
  1892.   )
  1893. )
  1894. ;;;
  1895. ;;; Get the horizontal and vertical distances between the viewports.
  1896. ;;; Sets the global mvs_p3 which is a point containing the X and Y
  1897. ;;; interstitial distances as the (car) and (cadr) of mvs_p3.
  1898. ;;;
  1899. ;;; mv_gid == MView_Get_Interstitial_Distances
  1900. ;;;
  1901. (defun mv_gid (/ )
  1902.   (setq mvs_p3 (list 0.0 0.0 0.0))
  1903.   (if (> (car mvs_p4) 1)
  1904.     (progn
  1905.       (setq ans (getdist (strcat 
  1906.         "\nDistancia entre ventanas en X. <"
  1907.         (mv_sts (car mvs_p3))
  1908.         ">: ")))
  1909.       (if (= (type ans) 'REAL)
  1910.         (setq mvs_p3 (list ans ans ans))
  1911.       )
  1912.     )
  1913.   )
  1914.   (if (> (cadr mvs_p4) 1)
  1915.     (progn
  1916.       (setq ans (getdist (strcat 
  1917.         "\nDistancia entre ventanas en Y. <"
  1918.         (mv_sts (cadr mvs_p3))
  1919.         ">: ")))
  1920.       (if (= (type ans) 'REAL)
  1921.         (setq mvs_p3 (list (car mvs_p3) ans (caddr mvs_p3)))
  1922.       )
  1923.     )
  1924.   )
  1925.   mvs_p3
  1926. )
  1927. ;;;
  1928. ;;; Get set up for creating viewports.
  1929. ;;; Sets the globals mvs_p1 and mvs_p2 which are the corners of the
  1930. ;;; allowable area for viewports in paperspace coordinates.
  1931. ;;;
  1932. ;;; mv_gba == MView_Get_Bounding_Area
  1933. ;;;
  1934. (defun mv_gba (/ )
  1935.   (if ll_crn
  1936.     (initget 1 "Defecto")
  1937.     (initget 1)
  1938.   )
  1939.   (graphscr)
  1940.   (setq ans (getpoint 
  1941.     (if ll_crn
  1942.       "\nArea de contorno para ventanas. Defecto/<primer punto>: "
  1943.       "\nArea de contorno para ventanas. Primer punto: "
  1944.     )
  1945.   ))
  1946.   (if (= ans "Defecto")
  1947.     (progn
  1948.       (if ll_crn
  1949.         (setq mvs_p1 ll_crn
  1950.               mvs_p2 ur_crn
  1951.         )
  1952.         (progn
  1953.           (princ "\nNo hay puntos por defecto definidos. ")
  1954.           (exit)
  1955.         )
  1956.       )
  1957.     )
  1958.     (progn
  1959.       (initget 1)
  1960.       (setq mvs_p1 ans
  1961.             mvs_p2 (getcorner mvs_p1 "\nOtro punto: ")
  1962.       )
  1963.     )
  1964.   )
  1965. )
  1966. ;;;
  1967. ;;; Check that the corners given are on-screen.  If not, zoom so they are.
  1968. ;;;
  1969. ;;; mv_cba == MView_Check_Bounding_Area
  1970. ;;;
  1971. (defun mv_cba (/ vs vc ss dx dy)
  1972.   (setq vs (getvar "viewsize")
  1973.         vc (getvar "viewctr")
  1974.         ss (getvar "screensize")
  1975.         dx (* vs (/ (car ss) (cadr ss)))
  1976.   ) 
  1977.   (if (or (< (car  mvs_p1) (- (car vc) (/ dx 2.0)))
  1978.           (< (cadr mvs_p1) (- (cadr vc) (/ vs 2.0)))
  1979.           (> (car  mvs_p2) (+ (car vc) (/ dx 2.0)))
  1980.           (> (cadr mvs_p2) (+ (cadr vc) (/ vs 2.0)))
  1981.       )
  1982.     (setq need_z T)
  1983.   )          
  1984. )
  1985. ;;;
  1986. ;;; Create a title block or Mview viewport layout from the code in the 
  1987. ;;; default file.  This may be anything from inserting a block to actually 
  1988. ;;; drawing every  component of the title block from scratch.  Any 
  1989. ;;; single-line valid Lisp expression may be written in the default file 
  1990. ;;; after the DATA name.
  1991. ;;;
  1992. ;;; mv_cfd == MView_Create_From_Defaults
  1993. ;;;
  1994. (defun mv_cfd (/ cont theCmd)
  1995.   (setq cont T)
  1996.   (while cont
  1997.     (setq theCmd (mv_rpl))
  1998.     (if (= (substr theCmd 1 8) "END_ITEM")
  1999.       (progn
  2000.         (setq cont nil)
  2001.       )
  2002.       (mv_etl theCmd)
  2003.     )
  2004.   )
  2005. )
  2006. ;;;
  2007. ;;; Evaluate the line or string passed in.
  2008. ;;;
  2009. ;;; mv_etl == MView_Evaluate_The_Line
  2010. ;;;
  2011. (defun mv_etl (str / )
  2012.   ;(princ str)(terpri)
  2013.   (if (eval(read str)) T nil)
  2014. )
  2015. ;;;
  2016. ;;; Read and parse out a line of the Lisp code found in the defaults
  2017. ;;; file.  This must be done so that literal strings may be written
  2018. ;;; directly in the defaults file, without having to escape all of them.
  2019. ;;; We will do the escaping here, if necessary.
  2020. ;;; 
  2021. ;;; Return the escaped string
  2022. ;;;
  2023. ;;; mv_rpl == MView_Read_and_Parse_a_Line
  2024. ;;;
  2025. (defun mv_rpl ( / line j k sl str)
  2026.   (if (setq line (read-line deffi))
  2027.     (progn
  2028.       (setq j 1 k 1 sl (strlen line) str "")
  2029.       (while (<= j sl)
  2030.         (if (= (setq sb_str (substr line j k)) "\"")
  2031.           (setq str (strcat str "\""))
  2032.           (setq str (strcat str sb_str))
  2033.         )
  2034.         (setq j (1+ j))
  2035.       )
  2036.     )
  2037.     (progn
  2038.       (princ "\nNo quedan lφneas por leer. ")
  2039.       (exit)
  2040.     )
  2041.   )
  2042.   str
  2043. )
  2044. ;;;
  2045. ;;; Create a default definitions file in the current directory
  2046. ;;; Read it out of this file (mvsetup.lsp) at the end of the file.
  2047. ;;;
  2048. ;;; mv_cdf == MView_Create_Defaults_File
  2049. ;;;
  2050. (defun mv_cdf (/ deffi deffo cont line)
  2051.   ;; The default file name for mvsetup is "mvsetup.dfs".
  2052.   ;; Look for it in AutoCAD's search paths
  2053.   ;;
  2054.   (if (setq deffi (mv_lfx "mvsetup.lsp" "r"))
  2055.     (if (setq deffo (mv_lfx mv_xdf "w"))
  2056.       (progn
  2057.         (setq cont T)
  2058.         (while cont
  2059.           (setq line (read-line deffi))
  2060.           ;; Seek to the start of the default file definition
  2061.           (if (= (substr line 1 13) ";;; Start DDF")
  2062.             (setq cont nil)
  2063.           )
  2064.         )
  2065.         ;; Start writing the file
  2066.         ;; Throw away the first four characters of each line to the EOF.
  2067.         
  2068.         (while (setq line (read-line deffi))
  2069.           ;; Seek to the start of the default file definition
  2070.           (write-line (substr line 5) deffo)
  2071.         )
  2072.         (setq deffi (close deffi))
  2073.         (setq deffo (close deffo))
  2074.       )
  2075.       (princ (strcat "\nError al abrir " mv_xdf " para escritura. "))
  2076.     )
  2077.     (princ (strcat "\nError al abrir " mv_xlf " para lectura. "))
  2078.   )
  2079. )
  2080. ;;;
  2081. ;;; Look for an external definitions file in AutoCAD's search path
  2082. ;;;
  2083. ;;; mv_lfx == MView_Look_For_eXternal_file
  2084. ;;;
  2085. (defun mv_lfx (f_name r_or_w / lfile)
  2086.   ;; Look for f_name in AutoCAD's search paths.
  2087.   (if (= r_or_w "w")
  2088.     (if (setq temp (open f_name r_or_w))
  2089.       temp                            ; Return file descriptor
  2090.       (progn
  2091.         (princ (strcat "\nImposible abrir " f_name " para escritura. "))
  2092.         (exit)
  2093.       )
  2094.     )
  2095.     (if (setq lfile (findfile f_name))
  2096.       (if (setq temp (open lfile r_or_w))
  2097.         temp                          ; Return file descriptor
  2098.         (progn
  2099.           (princ (strcat "\nImposible abrir " f_name " para lectura. "))
  2100.           (exit)
  2101.         )
  2102.       )
  2103.       nil                             ; or nil
  2104.     )
  2105.   )
  2106. )
  2107. ;;;
  2108. ;;; Change an existing setup, including the titleblock and/or viewports
  2109. ;;;
  2110. ;;; mv_coc == MView_Change_Or_Create?
  2111. ;;;
  2112. (defun mv_coc ()
  2113.   (initget "Crear Actualizar")
  2114.   (setq ans (getkword "\nActualizar la configuraci≤n actual/<Crear>: "))
  2115.   (if (= ans "Actualizar")
  2116.     -1                                ; Return -1
  2117.      1                                ; Return  1
  2118.   )
  2119. )
  2120. ;;;
  2121. ;;; Tilemode setup.
  2122. ;;;
  2123. ;;; mv_ == MView_
  2124. ;;;
  2125. (defun mv_dos (/ temp xl yl)
  2126.  
  2127.  
  2128. ;;  (if (and (/= (getvar "screenboxes") 0)(= (getvar "menuname") "acad"))
  2129. ;;    (setq scr_mnu 1)
  2130. ;;    (setq scr_mnu nil)
  2131. ;;  )
  2132. ;;  (if scr_mnu (menucmd "S=UNITS0"))
  2133.   (initget 7 "Cientφficas Decimales Pies pIes MΘtricas 1 2 3 4 5")
  2134.   (setq xxx (getkword "\nUnidades (Cientφficas/Decimales/Pies y pulgadas I/pIes y pulgadas II/MΘtricas): "))
  2135.   (cond
  2136. ;;    ((= xxx "1")(setq temp 1 scr_mnu 1))
  2137. ;;    ((= xxx "2")(setq temp 2 scr_mnu 1))
  2138. ;;    ((= xxx "3")(setq temp 3 scr_mnu 1))
  2139. ;;    ((= xxx "4")(setq temp 4 scr_mnu 1))
  2140. ;;    ((= xxx "5")(setq temp 5 scr_mnu 1))
  2141.     ((= xxx "Cientφficas")(setq temp 1 scr_mnu nil))
  2142.     ((= xxx "Decimales")(setq temp 2 scr_mnu nil))
  2143.     ((= xxx "Pies")(setq temp 3 scr_mnu nil))
  2144.     ((= xxx "pIes")(setq temp 4 scr_mnu nil))
  2145.     ((= xxx "MΘtricas")(setq temp 5 scr_mnu nil))
  2146.     (t (princ))
  2147.   )
  2148.   (setq mv_olu (getvar "lunits"))     ; Store current linear units setting
  2149.   (if (= temp 5)                      ; Set linear units to new value
  2150.     (setvar "lunits" 2)               ; If metric
  2151.     (setvar "lunits" temp)            ; otherwise
  2152.   )                                   
  2153. ;;  (if scr_mnu
  2154. ;;    (progn
  2155. ;;      (menucmd (strcat "S=U" (itoa temp)))                            
  2156.   
  2157. ;;      (initget 5)                         ; 0 ok, but no null or negative values
  2158.  
  2159. ;;      (setq mv_sc (getreal ;|MVSETUP_LSP_137|;"\nSelect the scale from the screen menu: "))
  2160. ;;      (cond
  2161. ;;        ((= mv_sc 0)
  2162. ;;          (progn
  2163. ;;           (initget 7)              
  2164. ;;           (setq mv_sc (getreal ;|MVSETUP_LSP_138|;"\nEnter the scale: "))
  2165. ;;           (setq mv_sc (float mv_sc))
  2166. ;;          )
  2167. ;;        )
  2168. ;;      )
  2169. ;;      (cond
  2170. ;;        ((= temp 5)
  2171. ;;          (menucmd "S=METRIC")
  2172. ;;        )
  2173. ;;        (T
  2174. ;;          (menucmd "S=ENGLISH")
  2175. ;;        )
  2176. ;;      )
  2177. ;;      (initget 5)                         ; 0 ok, but no null or negative values
  2178. ;;      (setq xl (getdist ;|MVSETUP_LSP_139|;"\nSelect the Paper size from the screen menu: "))
  2179. ;;      (initget 5)                         ; 0 ok, but no null or negative values
  2180. ;;      (setq yl (getdist))
  2181. ;;      (cond
  2182. ;;        ((= xl 0)
  2183. ;;          (progn
  2184. ;;           (initget 7)                    ; No null, negative or zero values
  2185. ;;           (setq xl (getdist ;|MVSETUP_LSP_140|;"\nEnter the Horizontal Dimension of the paper: "))
  2186. ;;           (initget 7)                    ; No null, negative or zero values
  2187. ;;           (setq yl (getdist ;|MVSETUP_LSP_141|;"\nEnter the Vertical Dimension of the paper: "))
  2188. ;;          )
  2189. ;;        )
  2190. ;;      )
  2191. ;;
  2192. ;;    )
  2193. ;;    (progn
  2194.       (textscr)
  2195.       (cond
  2196.         ((= temp 1)
  2197.           (princ (strcat
  2198.             "\nEscalas cientφficas\n=================\n"
  2199.             "\n (4.0)  4 VECES\n (2.0)  2 VECES\n (1.0)  COMPLETA"
  2200.             "\n (0.5)  MEDIO\n (0.25) CUARTO\n")
  2201.           )
  2202.         )
  2203.         ((= temp 2)
  2204.           (princ (strcat
  2205.             "\nEscalas decimales\n==================\n"
  2206.             "\n (4.0)  4 VECES\n (2.0)  2 VECES\n (1.0)  COMPLETA"
  2207.             "\n (0.5)  MEDIO\n (0.25) CUARTO\n")
  2208.           )
  2209.         )
  2210.         ((= temp 3)
  2211.           (princ (strcat
  2212.             "\nEscalas de ingenierφa\n===================\n"
  2213.             "\n (120)  1\"=10'\n (240)  1\"=20'\n"
  2214.             "\n (360)  1\"=30'\n (480)  1\"=40'\n"
  2215.             "\n (600)  1\"=50'\n (720)  1\"=60'\n"
  2216.             "\n (960)  1\"=80'\n (1200) 1\"=100'\n" )
  2217.           )
  2218.         )        
  2219.         ((= temp 4)
  2220.           (princ (strcat
  2221.             "\nEscalas arquitect≤nicas\n=====================\n"
  2222.             "\n (480) 1/40\"=1'\n (240) 1/20\"=1'\n (192) 1/16\"=1'"
  2223.             "\n (96)  1/8\"=1'\n (48)  1/4\"=1'\n"
  2224.             "\n (24)  1/2\"=1'\n (16)  3/4\"=1'\n\ (12)  1\"=1'\n (4)   3\"=1'"
  2225.             "\n (2)   6\"=1'\n (1)   COMPLETA\n")
  2226.           )
  2227.         )
  2228.         ((= temp 5)
  2229.           (princ (strcat
  2230.             "\nEscalas mΘtricas\n=================\n"
  2231.             "\n (5000) 1:5000\n (2000) 1:2000\n (1000) 1:1000"
  2232.             "\n (500)  1:500\n (200)  1:200\n"
  2233.             "\n (100)  1:100\n (75)   1:75\n (50)   1:50"
  2234.             "\n (20)   1:20\n (10)   1:10\n (5)    1:5\n (1)    1:1\n")
  2235.           )
  2236.         )
  2237.       )
  2238.       (initget 5)                         ; 0 ok, but no null or negative values      
  2239.       (setq mv_sc (getreal "\nIndique el factor de escala: "))
  2240.       (setq mv_sc (float mv_sc))
  2241.       (initget 7)                    ; No null, negative or zero values
  2242.       (setq xl (getdist "\nIndique la anchura del papel: "))
  2243.       (initget 7)                    ; No null, negative or zero values
  2244.       (setq yl (getdist "\nIndique la altura del papel: "))
  2245. ;;    )
  2246. ;;  )
  2247.  
  2248.   (setq xl (* mv_sc xl) 
  2249.         yl (* mv_sc yl)
  2250.   )
  2251.   (command  
  2252.     "_.LIMITS" "0,0" (list xl yl)
  2253.     "_.PLINE" "0,0" (list 0 yl) (list xl yl) (list xl 0) "0,0" "_C"
  2254.     "_.ZOOM" "_a"
  2255.   )
  2256. ;;  (menucmd "S=")
  2257. ;;  (menucmd "S=")
  2258. ;;  (menucmd "S=")
  2259. )
  2260. ;;;
  2261. ;;; C: function definition.
  2262. ;;;
  2263.  
  2264. (defun c:mvs () (mv_sup))
  2265. (defun c:mvsetup () (mv_sup))
  2266.  
  2267. ;;;
  2268. ;;; The rest of this file in source form is the default file.  When creating
  2269. ;;; a default file, each line following the line which contains "Start DDF"
  2270. ;;; is read and written to the default file minus its first four characters.
  2271. ;;; 
  2272. ;;; This file contains definitions for ANSI A through E size title block 
  2273. ;;; sheets and several viewport setup options.  If this file is ever 
  2274. ;;; Kelvinated or protected, then this section should be stripped out and 
  2275. ;;; shipped separately.  Some code changes would also be required.
  2276. ;;;
  2277.  
  2278. ;;; Start DDF
  2279. ;;; ;;; Do NOT erase or change the first three lines
  2280. ;;; ;;; Version 2.0 -- Copyright (C) Autodesk, Inc.  1990, 1992, 1994
  2281. ;;; ;;; MView Setup Defaults
  2282. ;;; ;;; This file contains sets of defaults for setting up multiple viewport
  2283. ;;; ;;; configurations in Paperspace in Release 13 of AutoCAD.  It is intended
  2284. ;;; ;;; that you modify the entries given here to create your own customized
  2285. ;;; ;;; versions.  The format of the file is as follows:
  2286. ;;; ;;;
  2287. ;;; ;;; The first part of the file is a list of the NAME's of the entries
  2288. ;;; ;;; followed by an END_NAMES delimiter.
  2289. ;;; ;;;
  2290. ;;; ;;; Each of the names may have optional, comma delimited fields in the
  2291. ;;; ;;; following order:  the first optional field is the file/path name of
  2292. ;;; ;;; an AutoCAD drawing which is to be inserted at the local UCS origin
  2293. ;;; ;;; when the name is selected, followed by a window in paperspace units
  2294. ;;; ;;; which represents the extents (in paperspace) of the usable paper
  2295. ;;; ;;; area.  This is the area which may be automatically filled with
  2296. ;;; ;;; viewports.  Last is either mm or in which specifies whether the units
  2297. ;;; ;;; used to construct the title block are specified in millimeters or
  2298. ;;; ;;; inches.  If the area points are not specified this filed may follow
  2299. ;;; ;;; the drawing name immediately.
  2300. ;;; ;;;
  2301. ;;; ;;; The data portion of the file for any NAME entry is of arbitrary
  2302. ;;; ;;; length, and contains lines of AutoLISP code with all coordinates
  2303. ;;; ;;; in Paperspace units.  It is terminated with END_DATA.
  2304. ;;; ;;;
  2305. ;;; ;;; Lines of AutoLisp code cannot be split across multiple lines.
  2306. ;;; ;;;
  2307. ;;; ;;; Lines may be commented out with `;'.
  2308. ;;;
  2309. ;;; NAMES
  2310. ;;; Ninguno
  2311. ;;; Formato ISO A4 (mm),iso_a4.dwg,(22.0 48.0 0.0),(198.0 278.0 0.0),mm
  2312. ;;; Formato ISO A3 (mm),iso_a3.dwg,(27.0 48.0 0.0),(408.0 285.0 0.0),mm
  2313. ;;; Formato ISO A2 (mm),iso_a2.dwg,(27.0 48.0 0.0),(582.0 408.0 0.0),mm
  2314. ;;; Formato ISO A1 (mm),iso_a1.dwg,(27.0 58.0 0.0),(819.0 572.0 0.0),mm
  2315. ;;; Formato ISO A0 (mm),iso_a0.dwg,(27.0 58.0 0.0),(1167.0 819.0 0.0),mm
  2316. ;;; Formato ANSI-V (pul),ansi-v.dwg,(0.505 2.125 0.0),(7.995 9.5777 0.0),in
  2317. ;;; Formato ANSI-A (pul),ansi-a.dwg,(0.375 2.255 0.0),(10.625 6.9477 0.0),in
  2318. ;;; Formato ANSI-B (pul),ansi-b.dwg,(0.745 0.505 0.0),(10.005 10.495 0.0),in
  2319. ;;; Formato ANSI C (pul),ansi-c.dwg,(0.625 0.875 0.0),(15.125 16.125 0.0),in
  2320. ;;; Formato ANSI-D (pul),ansi-d.dwg,(1.125 0.625 0.0),(25.255 21.375 0.0),in
  2321. ;;; Formato ANSI-E (pul),ansi-e.dwg,(0.625 1.125 0.0),(35.755 32.875 0.0),in
  2322. ;;; Pies y pulgadas II/Pies y pulgadas I (24 x 36 pul),arch-a.dwg,(1.0 1.0 0.0),(30.5 23.0 0.0),in
  2323. ;;; Formato D genΘrico (24 x 36 pul),gs24x36.dwg,(1.625 1.375 0.0),(33.625 22.625 0.0),in
  2324. ;;; END_NAMES
  2325. ;;;
  2326. ;;; DATA
  2327. ;;;
  2328. ;;; NAME - Ninguno
  2329. ;;; (princ)
  2330. ;;; END_ITEM
  2331. ;;;
  2332. ;;; An ISO - A4 size sheet with Title block and revision bar.
  2333. ;;; All points are in paperspace units at a scale of 1 mm.
  2334. ;;;
  2335. ;;; NAME - Formato ISO A4 (mm)
  2336. ;;; (command "_.ZOOM" "_W" "-80,-5" "330,300")
  2337. ;;; ;;;
  2338. ;;; ;;; Trimming marks
  2339. ;;; (command "_.LINE" "0,5" "0,0" "5,0" "")
  2340. ;;; (command "_.LINE" "205,0" "210,0" "210,5" "")
  2341. ;;; (command "_.LINE" "210,292" "210,297" "205,297" "")
  2342. ;;; (command "_.LINE" "5,297" "0,297" "0,292" "")
  2343. ;;; ;;;
  2344. ;;; ;;; Drawing sheet frame
  2345. ;;; (command "_.LINE" "20,10" "200,10" "200,287" "20,287" "_C")
  2346. ;;; ;;;
  2347. ;;; ;;; Title block
  2348. ;;; ;;;
  2349. ;;; ;;; Horizontals
  2350. ;;; (command "_.LINE" "95,20" "200,20" "")
  2351. ;;; (command "_.LINE" "20,30" "200,30" "")
  2352. ;;; (command "_.LINE" "20,40" "200,40" "")
  2353. ;;; (command "_.LINE" "20,46" "200,46" "")
  2354. ;;; ;;;
  2355. ;;; ;;; Verticals
  2356. ;;; (command "_.LINE" "33,40" "33,46" "")
  2357. ;;; (command "_.LINE" "50,30" "50,46" "")
  2358. ;;; (command "_.LINE" "75,30" "75,40" "")
  2359. ;;; (command "_.LINE" "95,10" "95,30" "")
  2360. ;;; (command "_.LINE" "125,30" "125,40" "")
  2361. ;;; (command "_.LINE" "150,30" "150,46" "")
  2362. ;;; (command "_.LINE" "165,10" "165,20" "")
  2363. ;;; (command "_.LINE" "180,10" "180,20" "")
  2364. ;;; (command "_.LINE" "180,30" "180,40" "")
  2365. ;;; ;;;
  2366. ;;; ;;; Text
  2367. ;;; (command "_.STYLE" "ADESK2" "isocp" "0" "1.0" "0" "" "")
  2368. ;;; (command "_.TEXT" "21,42" "2.5" "0" "Ref.art")
  2369. ;;; (command "_.TEXT" "34,42" "2.5" "0" "Cantidad")
  2370. ;;; (command "_.TEXT" "51,42" "2.5" "0" "Tφtulo/Nombre, designaci≤n, material, dimensi≤n, etc.")
  2371. ;;; (command "_.TEXT" "151,42" "2.5" "0" "N║. de artφculo/Referencia")
  2372. ;;; (command "_.TEXT" "21,36" "2.5" "0" "Dise±ado por")
  2373. ;;; (command "_.TEXT" "51,36" "2.5" "0" "Comprobado por")
  2374. ;;; (command "_.TEXT" "76,36" "2.5" "0" "Aprobado por - fecha")
  2375. ;;; (command "_.TEXT" "126,36" "2.5" "0" "Archivo")
  2376. ;;; (command "_.TEXT" "152,36" "2.5" "0" "Fecha")
  2377. ;;; (command "_.TEXT" "181,36" "2.5" "0" "Escala")
  2378. ;;; (command "_.TEXT" "21,26" "2.5" "0" "Propietario")
  2379. ;;; (command "_.TEXT" "96,26" "2.5" "0" "Tφtulo/Nombre")
  2380. ;;; (command "_.TEXT" "96,16" "2.5" "0" "N·mero de dibujo")
  2381. ;;; (command "_.TEXT" "166,16" "2.5" "0" "Edici≤n")
  2382. ;;; (command "_.TEXT" "181,16" "2.5" "0" "Hoja")
  2383. ;;; ;;;
  2384. ;;; ;;; Revision bar
  2385. ;;; ;;;
  2386. ;;; ;;; Horizontal
  2387. ;;; (command "_.LINE" "20,280" "200,280" "")
  2388. ;;; ;;;
  2389. ;;; ;;; Verticals
  2390. ;;; (command "_.LINE" "30,280" "30,287" "")
  2391. ;;; (command "_.LINE" "151,280" "151,287" "")
  2392. ;;; (command "_.LINE" "171,280" "171,287" "")
  2393. ;;; (command "_.LINE" "186,280" "186,287" "")
  2394. ;;; ;;;
  2395. ;;; ;;; Text
  2396. ;;; (command "_.TEXT" "21,282.5" "2.5" "0" "N║rev")
  2397. ;;; (command "_.TEXT" "31,282.5" "2.5" "0" "Nota de revisi≤n")
  2398. ;;; (command "_.TEXT" "152,282.5" "2.5" "0" "Fecha")
  2399. ;;; (command "_.TEXT" "172,282.5" "2.5" "0" "Firma")
  2400. ;;; (command "_.TEXT" "187,282.5" "2.5" "0" "Comprb.")
  2401. ;;; END_ITEM
  2402. ;;;
  2403. ;;; An ISO - A3 size sheet with Title block and revision bar.
  2404. ;;; All points are in paperspace units at a scale of 1 mm.
  2405. ;;;
  2406. ;;; NAME - Formato ISO A3 (mm)
  2407. ;;; (command "_.ZOOM" "_W" "-5,-5" "425,302")
  2408. ;;; ;;;
  2409. ;;; ;;; Trimming marks
  2410. ;;; (command "_.LINE" "0,5" "0,0" "5,0" "")
  2411. ;;; (command "_.LINE" "415,0" "420,0" "420,5" "")
  2412. ;;; (command "_.LINE" "420,292" "420,297" "415,297" "")
  2413. ;;; (command "_.LINE" "5,297" "0,297" "0,292" "")
  2414. ;;; ;;;
  2415. ;;; ;;; Drawing sheet frame
  2416. ;;; (command "_.LINE" "25,10" "410,10" "410,287" "25,287" "_C")
  2417. ;;; ;;;
  2418. ;;; ;;; Title block
  2419. ;;; ;;;
  2420. ;;; ;;; Horizontals
  2421. ;;; (command "_.LINE" "310,20" "410,20" "")
  2422. ;;; (command "_.LINE" "240,30" "410,30" "")
  2423. ;;; (command "_.LINE" "240,40" "410,40" "")
  2424. ;;; (command "_.LINE" "240,46" "410,46" "")
  2425. ;;; ;;;
  2426. ;;; ;;; Verticals
  2427. ;;; (command "_.LINE" "240,10" "240,46" "")
  2428. ;;; (command "_.LINE" "250,40" "250,46" "")
  2429. ;;; (command "_.LINE" "265,30" "265,46" "")
  2430. ;;; (command "_.LINE" "290,30" "290,40" "")
  2431. ;;; (command "_.LINE" "310,10" "310,30" "")
  2432. ;;; (command "_.LINE" "340,30" "340,40" "")
  2433. ;;; (command "_.LINE" "365,30" "365,46" "")
  2434. ;;; (command "_.LINE" "380,10" "380,20" "")
  2435. ;;; (command "_.LINE" "395,10" "395,20" "")
  2436. ;;; (command "_.LINE" "395,30" "395,40" "")
  2437. ;;; ;;;
  2438. ;;; ;;; Text
  2439. ;;; (command "_.STYLE" "ADESK2" "isocp" "0" "1.0" "0" "" "")
  2440. ;;; (command "_.TEXT" "240.7,42" "2.5" "0" "Ref.art")
  2441. ;;; (command "_.TEXT" "251,42" "2.5" "0" "Cantidad")
  2442. ;;; (command "_.TEXT" "266,42" "2.5" "0" "Tφtulo/Nombre, designaci≤n, material, dimensi≤n, etc.")
  2443. ;;; (command "_.TEXT" "366,42" "2.5" "0" "N║. de artφculo/Referencia")
  2444. ;;; (command "_.TEXT" "241,36" "2.5" "0" "Dise±ado por")
  2445. ;;; (command "_.TEXT" "266,36" "2.5" "0" "Comprobado por")
  2446. ;;; (command "_.TEXT" "291,36" "2.5" "0" "Aprobado por - fecha")
  2447. ;;; (command "_.TEXT" "341,36" "2.5" "0" "Archivo")
  2448. ;;; (command "_.TEXT" "366,36" "2.5" "0" "Fecha")
  2449. ;;; (command "_.TEXT" "396,36" "2.5" "0" "Escala")
  2450. ;;; (command "_.TEXT" "241,26" "2.5" "0" "Propietario")
  2451. ;;; (command "_.TEXT" "311,26" "2.5" "0" "Tφtulo/Nombre")
  2452. ;;; (command "_.TEXT" "311,16" "2.5" "0" "N·mero de dibujo")
  2453. ;;; (command "_.TEXT" "381,16" "2.5" "0" "Edici≤n")
  2454. ;;; (command "_.TEXT" "396,16" "2.5" "0" "Hoja")
  2455. ;;; ;;;
  2456. ;;; ;;; Revision bar
  2457. ;;; ;;;
  2458. ;;; ;;; Horizontal
  2459. ;;; (command "_.LINE" "25,17" "205,17" "")
  2460. ;;; ;;;
  2461. ;;; ;;; Verticals
  2462. ;;; (command "_.LINE" "35,10" "35,17" "")
  2463. ;;; (command "_.LINE" "156,10" "156,17" "")
  2464. ;;; (command "_.LINE" "176,10" "176,17" "")
  2465. ;;; (command "_.LINE" "191,10" "191,17" "")
  2466. ;;; (command "_.LINE" "205,10" "205,17" "")
  2467. ;;; ;;;
  2468. ;;; ;;; Text
  2469. ;;; (command "_.TEXT" "26,12.5" "2.5" "0" "N║rev")
  2470. ;;; (command "_.TEXT" "36,12.5" "2.5" "0" "Nota de revisi≤n")
  2471. ;;; (command "_.TEXT" "157,12.5" "2.5" "0" "Fecha")
  2472. ;;; (command "_.TEXT" "177,12.5" "2.5" "0" "Firma")
  2473. ;;; (command "_.TEXT" "192,12.5" "2.5" "0" "Comprb.")
  2474. ;;; END_ITEM
  2475. ;;;
  2476. ;;; An ISO - A2 size sheet with Title block and revision bar.
  2477. ;;; All points are in paperspace units at a scale of 1 mm.
  2478. ;;;
  2479. ;;; NAME - Formato ISO A2 (mm)
  2480. ;;; (command "_.ZOOM" "_W" "-5,-5" "600,425")
  2481. ;;; ;;;
  2482. ;;; ;;; Trimming marks
  2483. ;;; (command "_.LINE" "0,5" "0,0" "5,0" "")
  2484. ;;; (command "_.LINE" "589,0" "594,0" "594,5" "")
  2485. ;;; (command "_.LINE" "594,415" "594,420" "589,420" "")
  2486. ;;; (command "_.LINE" "5,420" "0,420" "0,415" "")
  2487. ;;; ;;;
  2488. ;;; ;;; Drawing sheet frame
  2489. ;;; (command "_.LINE" "25,10" "584,10" "584,410" "25,410" "_C")
  2490. ;;; ;;;
  2491. ;;; ;;; Horizontals
  2492. ;;; (command "_.LINE" "484,20" "584,20" "")
  2493. ;;; (command "_.LINE" "414,30" "584,30" "")
  2494. ;;; (command "_.LINE" "414,40" "584,40" "")
  2495. ;;; (command "_.LINE" "414,46" "584,46" "")
  2496. ;;; ;;;
  2497. ;;; ;;; Verticals
  2498. ;;; (command "_.LINE" "414,10" "414,46" "")
  2499. ;;; (command "_.LINE" "424,40" "424,46" "")
  2500. ;;; (command "_.LINE" "439,30" "439,46" "")
  2501. ;;; (command "_.LINE" "464,30" "464,40" "")
  2502. ;;; (command "_.LINE" "484,10" "484,30" "")
  2503. ;;; (command "_.LINE" "514,30" "514,40" "")
  2504. ;;; (command "_.LINE" "539,30" "539,46" "")
  2505. ;;; (command "_.LINE" "554,10" "554,20" "")
  2506. ;;; (command "_.LINE" "569,10" "569,20" "")
  2507. ;;; (command "_.LINE" "569,30" "569,40" "")
  2508. ;;; ;;;
  2509. ;;; ;;; Text
  2510. ;;; (command "_.STYLE" "ADESK2" "isocp" "0" "1.0" "0" "" "")
  2511. ;;; (command "_.TEXT" "414.7,42" "2.5" "0" "Ref.art")
  2512. ;;; (command "_.TEXT" "425,42" "2.5" "0" "Cantidad")
  2513. ;;; (command "_.TEXT" "440,42" "2.5" "0" "Tφtulo/Nombre, designaci≤n, material, dimensi≤n, etc.")
  2514. ;;; (command "_.TEXT" "540,42" "2.5" "0" "N║. de artφculo/Referencia")
  2515. ;;; (command "_.TEXT" "415,36" "2.5" "0" "Dise±ado por")
  2516. ;;; (command "_.TEXT" "440,36" "2.5" "0" "Comprobado por")
  2517. ;;; (command "_.TEXT" "465,36" "2.5" "0" "Aprobado por - fecha")
  2518. ;;; (command "_.TEXT" "515,36" "2.5" "0" "Archivo")
  2519. ;;; (command "_.TEXT" "540,36" "2.5" "0" "Fecha")
  2520. ;;; (command "_.TEXT" "570,36" "2.5" "0" "Escala")
  2521. ;;; (command "_.TEXT" "415,26" "2.5" "0" "Propietario")
  2522. ;;; (command "_.TEXT" "485,26" "2.5" "0" "Tφtulo/Nombre")
  2523. ;;; (command "_.TEXT" "485,16" "2.5" "0" "N·mero de dibujo")
  2524. ;;; (command "_.TEXT" "555,16" "2.5" "0" "Edici≤n")
  2525. ;;; (command "_.TEXT" "570,16" "2.5" "0" "Hoja")
  2526. ;;; ;;;
  2527. ;;; ;;; Revision bar
  2528. ;;; ;;;
  2529. ;;; ;;; Horizontal
  2530. ;;; (command "_.LINE" "25,17" "205,17" "")
  2531. ;;; ;;;
  2532. ;;; ;;; Verticals
  2533. ;;; (command "_.LINE" "35,10" "35,17" "")
  2534. ;;; (command "_.LINE" "156,10" "156,17" "")
  2535. ;;; (command "_.LINE" "176,10" "176,17" "")
  2536. ;;; (command "_.LINE" "191,10" "191,17" "")
  2537. ;;; (command "_.LINE" "205,10" "205,17" "")
  2538. ;;; ;;;
  2539. ;;; ;;; Text
  2540. ;;; (command "_.TEXT" "26,12.5" "2.5" "0" "N║rev")
  2541. ;;; (command "_.TEXT" "36,12.5" "2.5" "0" "Nota de revisi≤n")
  2542. ;;; (command "_.TEXT" "157,12.5" "2.5" "0" "Fecha")
  2543. ;;; (command "_.TEXT" "177,12.5" "2.5" "0" "Firma")
  2544. ;;; (command "_.TEXT" "192,12.5" "2.5" "0" "Comprb.")
  2545. ;;; END_ITEM
  2546. ;;;
  2547. ;;; An ISO - A1 size sheet with Title block and revision bar.
  2548. ;;; All points are in paperspace units at a scale of 1 mm.
  2549. ;;;
  2550. ;;; NAME - Formato ISO A1 (mm)
  2551. ;;; (command "_.ZOOM" "_W" "-5,-5" "846,599")
  2552. ;;; ;;;
  2553. ;;; ;;; Trimming marks
  2554. ;;; (command "_.LINE" "0,5" "0,0" "5,0" "")
  2555. ;;; (command "_.LINE" "836,0" "841,0" "841,5" "")
  2556. ;;; (command "_.LINE" "841,589" "841,594" "836,594" "")
  2557. ;;; (command "_.LINE" "5,594" "0,594" "0,589" "")
  2558. ;;; ;;;
  2559. ;;; ;;; Drawing sheet frame
  2560. ;;; (command "_.LINE" "25,20" "821,20" "821,574" "25,574" "_C")
  2561. ;;; ;;;
  2562. ;;; ;;; Horizontals
  2563. ;;; (command "_.LINE" "721,30" "821,30" "")
  2564. ;;; (command "_.LINE" "651,40" "821,40" "")
  2565. ;;; (command "_.LINE" "651,50" "821,50" "")
  2566. ;;; (command "_.LINE" "651,56" "821,56" "")
  2567. ;;; ;;;
  2568. ;;; ;;; Verticals
  2569. ;;; (command "_.LINE" "651,20" "651,56" "")
  2570. ;;; (command "_.LINE" "661,50" "661,56" "")
  2571. ;;; (command "_.LINE" "676,40" "676,56" "")
  2572. ;;; (command "_.LINE" "701,40" "701,50" "")
  2573. ;;; (command "_.LINE" "721,20" "721,40" "")
  2574. ;;; (command "_.LINE" "751,40" "751,50" "")
  2575. ;;; (command "_.LINE" "776,40" "776,56" "")
  2576. ;;; (command "_.LINE" "791,20" "791,30" "")
  2577. ;;; (command "_.LINE" "806,20" "806,30" "")
  2578. ;;; (command "_.LINE" "806,40" "806,50" "")
  2579. ;;; ;;;
  2580. ;;; ;;; Text
  2581. ;;; (command "_.STYLE" "ADESK2" "isocp" "0" "1.0" "0" "" "")
  2582. ;;; (command "_.TEXT" "651.7,52" "2.5" "0" "Ref.art")
  2583. ;;; (command "_.TEXT" "662,52" "2.5" "0" "Cantidad")
  2584. ;;; (command "_.TEXT" "677,52" "2.5" "0" "Tφtulo/Nombre, designaci≤n, material, dimensi≤n, etc.")
  2585. ;;; (command "_.TEXT" "777,52" "2.5" "0" "N║. de artφculo/Referencia")
  2586. ;;; (command "_.TEXT" "652,46" "2.5" "0" "Dise±ado por")
  2587. ;;; (command "_.TEXT" "677,46" "2.5" "0" "Comprobado por")
  2588. ;;; (command "_.TEXT" "702,46" "2.5" "0" "Aprobado por - fecha")
  2589. ;;; (command "_.TEXT" "752,46" "2.5" "0" "Archivo")
  2590. ;;; (command "_.TEXT" "777,46" "2.5" "0" "Fecha")
  2591. ;;; (command "_.TEXT" "807,46" "2.5" "0" "Escala")
  2592. ;;; (command "_.TEXT" "652,36" "2.5" "0" "Propietario")
  2593. ;;; (command "_.TEXT" "722,36" "2.5" "0" "Tφtulo/Nombre")
  2594. ;;; (command "_.TEXT" "722,26" "2.5" "0" "N·mero de dibujo")
  2595. ;;; (command "_.TEXT" "792,26" "2.5" "0" "Edici≤n")
  2596. ;;; (command "_.TEXT" "807,26" "2.5" "0" "Hoja")
  2597. ;;; ;;;
  2598. ;;; ;;; Revision bar
  2599. ;;; ;;;
  2600. ;;; ;;; Horizontal
  2601. ;;; (command "_.LINE" "25,27" "205,27" "")
  2602. ;;; ;;;
  2603. ;;; ;;; Verticals
  2604. ;;; (command "_.LINE" "35,20" "35,27" "")
  2605. ;;; (command "_.LINE" "156,20" "156,27" "")
  2606. ;;; (command "_.LINE" "176,20" "176,27" "")
  2607. ;;; (command "_.LINE" "191,20" "191,27" "")
  2608. ;;; (command "_.LINE" "205,20" "205,27" "")
  2609. ;;; ;;;
  2610. ;;; ;;; Text
  2611. ;;; (command "_.TEXT" "26,22.5" "2.5" "0" "N║rev")
  2612. ;;; (command "_.TEXT" "36,22.5" "2.5" "0" "Nota de revisi≤n")
  2613. ;;; (command "_.TEXT" "157,22.5" "2.5" "0" "Fecha")
  2614. ;;; (command "_.TEXT" "177,22.5" "2.5" "0" "Firma")
  2615. ;;; (command "_.TEXT" "192,22.5" "2.5" "0" "Comprb.")
  2616. ;;; END_ITEM
  2617. ;;;
  2618. ;;; An ISO - A0 size sheet with Title block and revision bar.
  2619. ;;; All points are in paperspace units at a scale of 1 mm.
  2620. ;;;
  2621. ;;; NAME - Formato ISO A0 (mm)
  2622. ;;; (command "_.ZOOM" "_W" "-5,-5" "1194,846")
  2623. ;;; ;;;
  2624. ;;; ;;; Trimming marks
  2625. ;;; (command "_.LINE" "0,5" "0,0" "5,0" "")
  2626. ;;; (command "_.LINE" "1184,0" "1189,0" "1189,5" "")
  2627. ;;; (command "_.LINE" "1189,836" "1189,841" "1184,841" "")
  2628. ;;; (command "_.LINE" "5,841" "0,841" "0,836" "")
  2629. ;;; ;;;
  2630. ;;; ;;; Drawing sheet frame
  2631. ;;; (command "_.LINE" "25,20" "1169,20" "1169,821" "25,821" "_C")
  2632. ;;; ;;;
  2633. ;;; ;;; Horizontals
  2634. ;;; (command "_.LINE" "1069,30" "1169,30" "")
  2635. ;;; (command "_.LINE" "999,40" "1169,40" "")
  2636. ;;; (command "_.LINE" "999,50" "1169,50" "")
  2637. ;;; (command "_.LINE" "999,56" "1169,56" "")
  2638. ;;; ;;;
  2639. ;;; ;;; Verticals
  2640. ;;; (command "_.LINE" "999,20" "999,56" "")
  2641. ;;; (command "_.LINE" "1009,50" "1009,56" "")
  2642. ;;; (command "_.LINE" "1024,40" "1024,56" "")
  2643. ;;; (command "_.LINE" "1049,40" "1049,50" "")
  2644. ;;; (command "_.LINE" "1069,20" "1069,40" "")
  2645. ;;; (command "_.LINE" "1099,40" "1099,50" "")
  2646. ;;; (command "_.LINE" "1124,40" "1124,56" "")
  2647. ;;; (command "_.LINE" "1139,20" "1139,30" "")
  2648. ;;; (command "_.LINE" "1154,20" "1154,30" "")
  2649. ;;; (command "_.LINE" "1154,40" "1154,50" "")
  2650. ;;; ;;;
  2651. ;;; ;;; Text
  2652. ;;; (command "_.STYLE" "ADESK2" "isocp" "0" "1.0" "0" "" "")
  2653. ;;; (command "_.TEXT" "999.7,52" "2.5" "0" "Ref.art")
  2654. ;;; (command "_.TEXT" "1010,52" "2.5" "0" "Cantidad")
  2655. ;;; (command "_.TEXT" "1025,52" "2.5" "0" "Tφtulo/Nombre, designaci≤n, material, dimensi≤n, etc.")
  2656. ;;; (command "_.TEXT" "1125,52" "2.5" "0" "N║. de artφculo/Referencia")
  2657. ;;; (command "_.TEXT" "1000,46" "2.5" "0" "Dise±ado por")
  2658. ;;; (command "_.TEXT" "1025,46" "2.5" "0" "Comprobado por")
  2659. ;;; (command "_.TEXT" "1050,46" "2.5" "0" "Aprobado por - fecha")
  2660. ;;; (command "_.TEXT" "1100,46" "2.5" "0" "Archivo")
  2661. ;;; (command "_.TEXT" "1125,46" "2.5" "0" "Fecha")
  2662. ;;; (command "_.TEXT" "1155,46" "2.5" "0" "Escala")
  2663. ;;; (command "_.TEXT" "1000,36" "2.5" "0" "Propietario")
  2664. ;;; (command "_.TEXT" "1070,36" "2.5" "0" "Tφtulo/Nombre")
  2665. ;;; (command "_.TEXT" "1070,26" "2.5" "0" "N·mero de dibujo")
  2666. ;;; (command "_.TEXT" "1140,26" "2.5" "0" "Edici≤n")
  2667. ;;; (command "_.TEXT" "1155,26" "2.5" "0" "Hoja")
  2668. ;;; ;;;
  2669. ;;; ;;; Revision bar
  2670. ;;; ;;;
  2671. ;;; ;;; Horizontal
  2672. ;;; (command "_.LINE" "25,27" "205,27" "")
  2673. ;;; ;;;
  2674. ;;; ;;; Verticals
  2675. ;;; (command "_.LINE" "35,20" "35,27" "")
  2676. ;;; (command "_.LINE" "156,20" "156,27" "")
  2677. ;;; (command "_.LINE" "176,20" "176,27" "")
  2678. ;;; (command "_.LINE" "191,20" "191,27" "")
  2679. ;;; (command "_.LINE" "205,20" "205,27" "")
  2680. ;;; ;;;
  2681. ;;; ;;; Text
  2682. ;;; (command "_.TEXT" "26,22.5" "2.5" "0" "N║rev")
  2683. ;;; (command "_.TEXT" "36,22.5" "2.5" "0" "Nota de revisi≤n")
  2684. ;;; (command "_.TEXT" "157,22.5" "2.5" "0" "Fecha")
  2685. ;;; (command "_.TEXT" "177,22.5" "2.5" "0" "Firma")
  2686. ;;; (command "_.TEXT" "192,22.5" "2.5" "0" "Comprb.")
  2687. ;;; END_ITEM
  2688. ;;;
  2689. ;;;
  2690. ;;; An ANSI - A size Vertical sheet with Title block and revision bar.
  2691. ;;; All points are in paperspace units at a scale of 1 inch.
  2692. ;;; 
  2693. ;;; NAME - Formato ANSI-V (pul)
  2694. ;;; (command "_.ZOOM" "_W" "-0.5,-0.5" "9.0,11.5")
  2695. ;;; (command "_.LINE" "0,0" "8.5,0" "8.5,11" "0,11" "_C")
  2696. ;;; (command "_.LINE" ".38,.25" "8.12,.25" "8.12,10.75" ".38,10.75" "_C")
  2697. ;;; ;;; Bottom microfilm alignment arrow
  2698. ;;; (command "_.PLINE" "4.25,0" "_W" "0.02" "" "4.25,.1" "")
  2699. ;;; (command "_.SOLID" "4.1,.1" "4.4,.1" "4.25,.25" "" "")
  2700. ;;; ;;; Right microfilm alignment arrow
  2701. ;;; (command "_.PLINE" "8.37,5.5" "_W" "0.02" "" "8.27,5.5" "")
  2702. ;;; (command "_.SOLID" "8.27,5.35" "8.27,5.65" "8.12,5.5" "" "")
  2703. ;;; ;;; Top microfilm alignment arrow
  2704. ;;; (command "_.PLINE" "4.25,11" "_W" "0.02" "" "4.25,10.9" "")
  2705. ;;; (command "_.SOLID" "4.1,10.9" "4.4,10.9" "4.25,10.75" "" "")
  2706. ;;; ;;; Left microfilm alignment arrow
  2707. ;;; (command "_.PLINE" ".13,5.5" "_W" "0.02" "" ".23,5.5" "")
  2708. ;;; (command "_.SOLID" ".23,5.35" ".23,5.65" ".38,5.5" "" "")
  2709. ;;; ;;;
  2710. ;;; ;;; Title block
  2711. ;;; ;;;
  2712. ;;; ;;; Horizontals
  2713. ;;; (command "_.LINE" "1.87,0.25" "1.87,2"    "8.12,2" "")
  2714. ;;; (command "_.LINE" "1.87,.565" "3.87,.565" "")
  2715. ;;; (command "_.LINE" "1.87,.88"  "8.12,.88"  "")
  2716. ;;; (command "_.LINE" "3.87,.5"   "8.12,.5"   "")
  2717. ;;; (command "_.LINE" "3.87,1.5"  "8.12,1.5"  "")
  2718. ;;; ;;;
  2719. ;;; ;;; Verticals
  2720. ;;; (command "_.LINE" "3.87,0.25" "3.87,2"  "")
  2721. ;;; (command "_.LINE" "4.87,.25"  "4.87,.5"  "")
  2722. ;;; (command "_.LINE" "6.37,.25"  "6.37,.5"  "")
  2723. ;;; (command "_.LINE" "4.25,.5"   "4.25,.88" "")
  2724. ;;; (command "_.LINE" "5.37,.5"   "5.37,.88" "")
  2725. ;;; (command "_.LINE" "7.74,.5"   "7.74,.88" "")
  2726. ;;; ;;;
  2727. ;;; ;;; Text
  2728. ;;; (command "_.STYLE" "ADESK1" "romans" "0" "1.0" "0" "" "" "")
  2729. ;;; (command "_.TEXT" "3.9223,.3425" "0.065" "0" "Escala")
  2730. ;;; (command "_.TEXT" "6.4228,.3425" "0.065" "0" "Hoja")
  2731. ;;; (command "_.TEXT" "3.9579,.7659" "0.065" "0" "TAM.")
  2732. ;;; (command "_.TEXT" "4.3189,.7659" "0.065" "0" "N║ FSCM.")
  2733. ;;; (command "_.TEXT" "5.4410,.7659" "0.065" "0" "N║ DIB.")
  2734. ;;; (command "_.TEXT" "7.8205,.7659" "0.065" "0" "REV")
  2735. ;;; ;;;
  2736. ;;; ;;; Revision bar
  2737. ;;; ;;;
  2738. ;;; ;;; Horizontals
  2739. ;;; (command "_.LINE" "2.62,10.5" "8.12,10.5" "")
  2740. ;;; (command "_.LINE" "2.62,10.25" "8.12,10.25" "")
  2741. ;;; ;;;
  2742. ;;; ;;; Verticals
  2743. ;;; (command "_.LINE" "2.62,10.75" "2.62,9.7027" "")
  2744. ;;; (command "_.LINE" "3.12,10.25" "3.12,10.5" "")
  2745. ;;; (command "_.LINE" "3.50,10.25" "3.50,10.5" "")
  2746. ;;; (command "_.LINE" "6.24,10.25" "6.24,10.5" "")
  2747. ;;; (command "_.LINE" "7.12,10.25" "7.12,10.5" "")
  2748. ;;; ;;;
  2749. ;;; ;;; Revision bar text
  2750. ;;; ;;;
  2751. ;;; (command "_.TEXT" "5.3302,10.5825" "0.065" "0" "REVISIONES")
  2752. ;;; (command "_.TEXT" "2.7287,10.3403" "0.065" "0" "ZONA")
  2753. ;;; (command "_.TEXT" "3.2001,10.3403" "0.065" "0" "REV")
  2754. ;;; (command "_.TEXT" "4.5020,10.3403" "0.065" "0" "DESCRIPCION")
  2755. ;;; (command "_.TEXT" "6.5677,10.3403" "0.065" "0" "Fecha")
  2756. ;;; (command "_.TEXT" "7.3614,10.3403" "0.065" "0" "APROBADO")
  2757. ;;; END_ITEM
  2758. ;;; 
  2759. ;;; An ANSI - A size sheet with Title block and revision bar.
  2760. ;;; All points are in paperspace units at a scale of 1 inch.
  2761. ;;; 
  2762. ;;; NAME - Formato ANSI-A (pul)
  2763. ;;; (command "_.ZOOM" "_W" "-0.5,-0.5" "11.5,9.0")
  2764. ;;; (command "_.LINE" "0,0" "11,0" "11,8.5" "0,8.5" "_C")
  2765. ;;; (command "_.LINE" ".25,.38" "10.75,.38" "10.75,8.12" ".25,8.12" "_C")
  2766. ;;; ;;; Bottom microfilm alignment arrow
  2767. ;;; (command "_.PLINE" "5.5,.13" "_W" "0.02" "" "5.5,.23" "")
  2768. ;;; (command "_.SOLID" "5.35,.23" "5.65,.23" "5.5,.38" "" "")
  2769. ;;; ;;; Right microfilm alignment arrow
  2770. ;;; (command "_.PLINE" "11,4.25" "_W" "0.02" "" "10.9,4.25" "")
  2771. ;;; (command "_.SOLID" "10.9,4.1" "10.9,4.4" "10.75,4.25" "" "")
  2772. ;;; ;;; Top microfilm alignment arrow
  2773. ;;; (command "_.PLINE" "5.5,8.37" "_W" "0.02" "" "5.5,8.27" "")
  2774. ;;; (command "_.SOLID" "5.35,8.27" "5.65,8.27" "5.5,8.12" "" "")
  2775. ;;; ;;; Left microfilm alignment arrow
  2776. ;;; (command "_.PLINE" "0,4.25" "_W" "0.02" "" ".1,4.25" "")
  2777. ;;; (command "_.SOLID" ".1,4.1" ".1,4.4" ".25,4.25" "" "")
  2778. ;;; ;;;
  2779. ;;; ;;; Title block
  2780. ;;; ;;;
  2781. ;;; ;;; Horizontals
  2782. ;;; (command "_.LINE" "4.5,.38"   "4.5,2.13"   "10.75,2.13" "")
  2783. ;;; (command "_.LINE" "4.5,.695"  "6.5,.695"   "")
  2784. ;;; (command "_.LINE" "4.5,1.01"  "10.75,1.01" "")
  2785. ;;; (command "_.LINE" "6.5,.63"   "10.75,.63"  "")
  2786. ;;; (command "_.LINE" "6.5,1.63"  "10.75,1.63" "")
  2787. ;;; ;;;
  2788. ;;; ;;; Verticals
  2789. ;;; (command "_.LINE" "6.5,0.38" "6.5,2.13"  "")
  2790. ;;; (command "_.LINE" "7.5,.38"   "7.5,.63"    "")
  2791. ;;; (command "_.LINE" "9.0,.38"   "9.0,.63"    "")
  2792. ;;; (command "_.LINE" "6.88,.63"  "6.88,1.01"  "")
  2793. ;;; (command "_.LINE" "8,.63"     "8,1.01"     "")
  2794. ;;; (command "_.LINE" "10.37,.63" "10.37,1.01" "")
  2795. ;;; ;;;
  2796. ;;; ;;; Text
  2797. ;;; (command "_.STYLE" "ADESK1" "romans" "0" "1.0" "0" "" "" "")
  2798. ;;; (command "_.TEXT" "6.5523,0.4725" "0.065" "0" "Escala")
  2799. ;;; (command "_.TEXT" "9.0528,0.4725" "0.065" "0" "Hoja")
  2800. ;;; (command "_.TEXT" "6.5879,0.8959" "0.065" "0" "TAM.")
  2801. ;;; (command "_.TEXT" "6.9489,0.8959" "0.065" "0" "N║ FSCM.")
  2802. ;;; (command "_.TEXT" "8.0710,0.8959" "0.065" "0" "N║ DIB.")
  2803. ;;; (command "_.TEXT" "10.4505,0.8959" "0.065" "0" "REV")
  2804. ;;; ;;;
  2805. ;;; ;;; Revision bar
  2806. ;;; ;;;
  2807. ;;; ;;; Horizontals
  2808. ;;; (command "_.LINE" "5.25,7.87" "10.75,7.87" "")
  2809. ;;; (command "_.LINE" "5.25,7.62" "10.75,7.62" "")
  2810. ;;; ;;;
  2811. ;;; ;;; Verticals
  2812. ;;; (command "_.LINE" "5.25,8.12" "5.25,7.0727" "")
  2813. ;;; (command "_.LINE" "5.75,7.62" "5.75,7.87" "")
  2814. ;;; (command "_.LINE" "6.13,7.62" "6.13,7.87" "")
  2815. ;;; (command "_.LINE" "8.87,7.62" "8.87,7.87" "")
  2816. ;;; (command "_.LINE" "9.75,7.62" "9.75,7.87" "")
  2817. ;;; ;;;
  2818. ;;; ;;; Revision bar text
  2819. ;;; ;;;
  2820. ;;; (command "_.TEXT" "7.9602,7.9525" "0.065" "0" "REVISIONES")
  2821. ;;; (command "_.TEXT" "5.3587,7.7103" "0.065" "0" "ZONA")
  2822. ;;; (command "_.TEXT" "5.8301,7.7103" "0.065" "0" "REV")
  2823. ;;; (command "_.TEXT" "7.1320,7.7103" "0.065" "0" "DESCRIPCION")
  2824. ;;; (command "_.TEXT" "9.1977,7.7103" "0.065" "0" "Fecha")
  2825. ;;; (command "_.TEXT" "9.9914,7.7103" "0.065" "0" "APROBADO")
  2826. ;;; END_ITEM
  2827. ;;; 
  2828. ;;; An ANSI - B size sheet with Title block and revision bar.
  2829. ;;; All points are in paperspace units at a scale of 1 inch.
  2830. ;;; 
  2831. ;;; NAME - Formato ANSI-B (pul)
  2832. ;;; (command "_.ZOOM" "_W" "-0.5,-0.5" "17.5,11.5")
  2833. ;;; (command "_.LINE" "0,0" "17,0" "17,11" "0,11" "_C")
  2834. ;;; (command "_.LINE" ".62,.38" "16.38,.38" "16.38,10.62" ".62,10.62" "_C")
  2835. ;;; ;;; Bottom microfilm alignment arrow
  2836. ;;; (command "_.PLINE" "8.5,.13" "_W" "0.02" "" "8.5,.23" "")
  2837. ;;; (command "_.SOLID" "8.35,.23" "8.65,.23" "8.5,.38" "" "")
  2838. ;;; ;;; Right microfilm alignment arrow
  2839. ;;; (command "_.PLINE" "16.62,5.5" "_W" "0.02" "" "16.52,5.5" "")
  2840. ;;; (command "_.SOLID" "16.52,5.35" "16.52,5.65" "16.38,5.5" "" "")
  2841. ;;; ;;; Top microfilm alignment arrow
  2842. ;;; (command "_.PLINE" "8.5,10.87" "_W" "0.02" "" "8.5,10.77" "")
  2843. ;;; (command "_.SOLID" "8.35,10.77" "8.65,10.77" "8.5,10.62" "" "")
  2844. ;;; ;;; Left microfilm alignment arrow
  2845. ;;; (command "_.PLINE" ".38,5.5" "_W" "0.02" "" ".48,5.5" "")
  2846. ;;; (command "_.SOLID" ".48,5.35" ".48,5.65" ".62,5.5" "" "")
  2847. ;;; ;;;
  2848. ;;; ;;; Title block
  2849. ;;; ;;;
  2850. ;;; ;;; Horizontals
  2851. ;;; (command "_.LINE" "10.13,.38"   "10.13,2.13"   "16.38,2.13" "")
  2852. ;;; (command "_.LINE" "10.13,.695"  "12.13,.695"   "")
  2853. ;;; (command "_.LINE" "10.13,1.01"  "16.38,1.01" "")
  2854. ;;; (command "_.LINE" "12.13,.63"   "16.38,.63"  "")
  2855. ;;; (command "_.LINE" "12.13,1.63"  "16.38,1.63" "")
  2856. ;;; ;;;
  2857. ;;; ;;; Verticals
  2858. ;;; (command "_.LINE" "12.13,0.38" "12.13,2.13"  "")
  2859. ;;; (command "_.LINE" "13.13,.38" "13.13,.63"   "")
  2860. ;;; (command "_.LINE" "14.63,.38" "14.63,.63"   "")
  2861. ;;; (command "_.LINE" "12.51,.63" "12.51,1.01"  "")
  2862. ;;; (command "_.LINE" "13.63,.63" "13.63,1.01"  "")
  2863. ;;; (command "_.LINE" "16,.63"    "16,1.01"     "")
  2864. ;;; ;;;
  2865. ;;; ;;; Text
  2866. ;;; (command "_.STYLE" "ADESK1" "romans" "0" "1.0" "0" "" "" "")
  2867. ;;; (command "_.TEXT" "12.1823,0.4725" "0.065" "0" "Escala")
  2868. ;;; (command "_.TEXT" "14.6828,0.4725" "0.065" "0" "Hoja")
  2869. ;;; (command "_.TEXT" "12.2179,0.8959" "0.065" "0" "TAM.")
  2870. ;;; (command "_.TEXT" "12.5789,0.8959" "0.065" "0" "N║ FSCM.")
  2871. ;;; (command "_.TEXT" "13.7010,0.8959" "0.065" "0" "N║ DIB.")
  2872. ;;; (command "_.TEXT" "16.0805,0.8959" "0.065" "0" "REV")
  2873. ;;; ;;;
  2874. ;;; ;;; Revision bar
  2875. ;;; ;;;
  2876. ;;; ;;; Horizontals
  2877. ;;; (command "_.LINE" "10.88,10.37" "16.38,10.37" "")
  2878. ;;; (command "_.LINE" "10.88,10.12" "16.38,10.12" "")
  2879. ;;; ;;;
  2880. ;;; ;;; Verticals
  2881. ;;; (command "_.LINE" "10.88,10.62" "10.88,9.5727" "")
  2882. ;;; (command "_.LINE" "11.38,10.12" "11.38,10.37" "")
  2883. ;;; (command "_.LINE" "11.76,10.12" "11.76,10.37" "")
  2884. ;;; (command "_.LINE" "14.5,10.12" "14.5,10.37" "")
  2885. ;;; (command "_.LINE" "15.38,10.12" "15.38,10.37" "")
  2886. ;;; ;;;
  2887. ;;; ;;; Revision bar text
  2888. ;;; ;;;
  2889. ;;; (command "_.TEXT" "13.5902,10.4525" "0.065" "0" "REVISIONES")
  2890. ;;; (command "_.TEXT" "10.9887,10.2103" "0.065" "0" "ZONA")
  2891. ;;; (command "_.TEXT" "11.4601,10.2103" "0.065" "0" "REV")
  2892. ;;; (command "_.TEXT" "12.7620,10.2103" "0.065" "0" "DESCRIPCION")
  2893. ;;; (command "_.TEXT" "14.8277,10.2103" "0.065" "0" "Fecha")
  2894. ;;; (command "_.TEXT" "15.6214,10.2103" "0.065" "0" "APROBADO")
  2895. ;;; END_ITEM
  2896. ;;; 
  2897. ;;; An ANSI - C size sheet with Title block and revision bar.
  2898. ;;; All points are in paperspace units at a scale of 1 inch.
  2899. ;;; 
  2900. ;;; NAME - Formato ANSI C (pul)
  2901. ;;; (command "_.ZOOM" "_W" "-0.5,-0.5" "22.5,17.5")
  2902. ;;; (command "_.LINE" "0,0" "22,0" "22,17" "0,17" "_C")
  2903. ;;; (command "_.LINE" ".5,.75" "21.5,.75" "21.5,16.25" ".5,16.25" "_C")
  2904. ;;; (command "_.LINE" "5.5,0.375" "5.5,0.75" "")
  2905. ;;; (command "_.ARRAY" (entlast) "" "_R" "2" "2" "15.875" "11")
  2906. ;;; (command "_.LINE" "0.125,4.25" "0.5,4.25" "")
  2907. ;;; (command "_.ARRAY" (entlast) "" "_R" "2" "2" "8.5" "21.375")
  2908. ;;; ;;;
  2909. ;;; ;;; Bottom microfilm alignment arrow
  2910. ;;; (command "_.PLINE" "11,.5" "_W" "0.02" "" "11,.6" "")
  2911. ;;; (command "_.SOLID" "10.85,.6" "11.15,.6" "11,.75" "" "")
  2912. ;;; ;;; Right microfilm alignment arrow
  2913. ;;; (command "_.PLINE" "21.75,8.5" "_W" "0.02" "" "21.65,8.5" "")
  2914. ;;; (command "_.SOLID" "21.65,8.35" "21.65,8.65" "21.5,8.5" "" "")
  2915. ;;; ;;; Top microfilm alignment arrow
  2916. ;;; (command "_.PLINE" "11,16.5" "_W" "0.02" "" "11,16.4" "")
  2917. ;;; (command "_.SOLID" "10.85,16.4" "11.15,16.4" "11,16.25" "" "")
  2918. ;;; ;;; Left microfilm alignment arrow
  2919. ;;; (command "_.PLINE" ".25,8.5" "_W" "0.02" "" ".35,8.5" "")
  2920. ;;; (command "_.SOLID" ".35,8.35" ".35,8.65" ".5,8.5" "" "")
  2921. ;;; ;;;
  2922. ;;; ;;; Title block
  2923. ;;; ;;;
  2924. ;;; ;;; Horizontals
  2925. ;;; (command "_.LINE" "15.25,0.75"   "15.25,2.5"   "21.50,2.5" "")
  2926. ;;; (command "_.LINE" "15.25,1.065"  "17.25,1.065"   "")
  2927. ;;; (command "_.LINE" "15.25,1.38"  "21.5,1.38" "")
  2928. ;;; (command "_.LINE" "17.25,1"   "21.5,1"  "")
  2929. ;;; (command "_.LINE" "17.25,2"  "21.5,2" "")
  2930. ;;; ;;;
  2931. ;;; ;;; Verticals
  2932. ;;; (command "_.LINE" "17.25,0.75" "17.25,2.5"  "")
  2933. ;;; (command "_.LINE" "18.25,0.75" "18.25,1"    "")
  2934. ;;; (command "_.LINE" "19.75,0.75" "19.75,1"    "")
  2935. ;;; (command "_.LINE" "17.63,1"    "17.63,1.38" "")
  2936. ;;; (command "_.LINE" "18.75,1"    "18.75,1.38" "")
  2937. ;;; (command "_.LINE" "21.12,1"    "21.12,1.38" "")
  2938. ;;; ;;;
  2939. ;;; ;;; Text
  2940. ;;; (command "_.STYLE" "ADESK1" "romans" "0" "1.0" "0" "" "" "")
  2941. ;;; (command "_.TEXT" "17.3023,0.8425" "0.065" "0" "Escala")
  2942. ;;; (command "_.TEXT" "19.8028,0.8425" "0.065" "0" "Hoja")
  2943. ;;; (command "_.TEXT" "17.3379,1.2659" "0.065" "0" "TAM.")
  2944. ;;; (command "_.TEXT" "17.6989,1.2659" "0.065" "0" "N║ FSCM.")
  2945. ;;; (command "_.TEXT" "18.8210,1.2659" "0.065" "0" "N║ DIB.")
  2946. ;;; (command "_.TEXT" "21.2005,1.2659" "0.065" "0" "REV")
  2947. ;;; ;;;
  2948. ;;; ;;; Revision bar
  2949. ;;; ;;;
  2950. ;;; ;;; Horizontals
  2951. ;;; (command "_.LINE" "16,16" "21.5,16" "")
  2952. ;;; (command "_.LINE" "16,15.75" "21.5,15.75" "")
  2953. ;;; ;;;
  2954. ;;; ;;; Verticals
  2955. ;;; (command "_.LINE" "16,16.25" "16,15.2027" "")
  2956. ;;; (command "_.LINE" "16.5,15.75" "16.5,16" "")
  2957. ;;; (command "_.LINE" "16.88,15.75" "16.88,16" "")
  2958. ;;; (command "_.LINE" "19.62,15.75" "19.62,16" "")
  2959. ;;; (command "_.LINE" "20.5,15.75" "20.5,16" "")
  2960. ;;; ;;;
  2961. ;;; ;;; Revision bar text
  2962. ;;; ;;;
  2963. ;;; (command "_.TEXT" "18.7102,16.0825" "0.065" "0" "REVISIONES")
  2964. ;;; (command "_.TEXT" "16.1087,15.8403" "0.065" "0" "ZONA")
  2965. ;;; (command "_.TEXT" "16.5801,15.8403" "0.065" "0" "REV")
  2966. ;;; (command "_.TEXT" "17.8820,15.8403" "0.065" "0" "DESCRIPCION")
  2967. ;;; (command "_.TEXT" "19.9477,15.8403" "0.065" "0" "Fecha")
  2968. ;;; (command "_.TEXT" "20.7414,15.8403" "0.065" "0" "APROBADO")
  2969. ;;; ;;;
  2970. ;;; (command "_.TEXT" "_MC"  "0.25,2.125"  "0.25" "0" "A")
  2971. ;;; (command "_.TEXT" "_MC"  "0.25,6.375"  "0.25" "0" "B")
  2972. ;;; (command "_.TEXT" "_MC"  "0.25,10.625" "0.25" "0" "C")
  2973. ;;; (command "_.TEXT" "_MC"  "0.25,14.875" "0.25" "0" "D")
  2974. ;;; (command "_.TEXT" "_MC" "21.75,2.125"  "0.25" "0" "A")
  2975. ;;; (command "_.TEXT" "_MC" "21.75,6.375"  "0.25" "0" "B")
  2976. ;;; (command "_.TEXT" "_MC" "21.75,10.625" "0.25" "0" "C")
  2977. ;;; (command "_.TEXT" "_MC" "21.75,14.875" "0.25" "0" "D")
  2978. ;;; ;;;
  2979. ;;; (command "_.TEXT" "_MC" "19.25,0.5"    "0.25" "0" "1")
  2980. ;;; (command "_.TEXT" "_MC" "13.75,0.5"    "0.25" "0" "2")
  2981. ;;; (command "_.TEXT" "_MC"  "8.25,0.5"    "0.25" "0" "3")
  2982. ;;; (command "_.TEXT" "_MC"  "2.75,0.5"    "0.25" "0" "4")
  2983. ;;; ;;;
  2984. ;;; (command "_.TEXT" "_MC" "19.25,16.5"   "0.25" "0" "1")
  2985. ;;; (command "_.TEXT" "_MC" "13.75,16.5"   "0.25" "0" "2")
  2986. ;;; (command "_.TEXT" "_MC"  "8.25,16.5"   "0.25" "0" "3")
  2987. ;;; (command "_.TEXT" "_MC"  "2.75,16.5"   "0.25" "0" "4")
  2988. ;;; END_ITEM
  2989. ;;; 
  2990. ;;; An ANSI - D size sheet with Title block and revision bar.
  2991. ;;; All points are in paperspace units at a scale of 1 inch.
  2992. ;;; 
  2993. ;;; NAME - Formato ANSI-D (pul)
  2994. ;;; (command "_.ZOOM" "_W" "-0.5,-0.5" "34.5,22.5")
  2995. ;;; (command "_.LINE" "0,0" "34,0" "34,22" "0,22" "_C")
  2996. ;;; (command "_.LINE" "1,.5" "33,.5" "33,21.5" "1,21.5" "_C")
  2997. ;;; (command "_.LINE" "4.25,.125" "4.25,.5" "")
  2998. ;;; (command "_.ARRAY" (entlast) "" "_R" "2" "8" "21.375" "4.25")
  2999. ;;; (command "_.LINE" ".5,5.5" "1,5.5" "")
  3000. ;;; (command "_.ARRAY" (entlast) "" "_R" "3" "2" "5.5" "32.5")
  3001. ;;; ;;;
  3002. ;;; ;;; Bottom microfilm alignment arrow
  3003. ;;; (command "_.PLINE" "17,.1" "_W" "0.02" "" "17,.3" "")
  3004. ;;; (command "_.SOLID" "16.8,.3" "17.2,.3" "17,.5" "" "")
  3005. ;;; ;;; Right microfilm alignment arrow
  3006. ;;; (command "_.PLINE" "33.4,11" "_W" "0.02" "" "33.4,11" "")
  3007. ;;; (command "_.SOLID" "33.2,10.8" "33.2,11.2" "33,11" "" "")
  3008. ;;; ;;; Top microfilm alignment arrow
  3009. ;;; (command "_.PLINE" "17,21.9" "_W" "0.02" "" "17,21.7" "")
  3010. ;;; (command "_.SOLID" "16.8,21.7" "17.2,21.7" "17,21.5" "" "")
  3011. ;;; ;;; Left microfilm alignment arrow
  3012. ;;; (command "_.PLINE" ".6,11" "_W" "0.02" "" ".8,11" "")
  3013. ;;; (command "_.SOLID" ".8,10.8" ".8,11.2" "1,11" "" "")
  3014. ;;; ;;;
  3015. ;;; ;;;
  3016. ;;; ;;; Title block
  3017. ;;; ;;;
  3018. ;;; (command "_.LINE" "25.38,.5" "25.38,3" "33,3" "")
  3019. ;;; (command "_.LINE" "27.88,.5" "27.88,3" "")
  3020. ;;; (command "_.LINE" "27.88,.75" "33,.75" "")
  3021. ;;; (command "_.LINE" "25.38,1.25" "33,1.25" "")
  3022. ;;; (command "_.LINE" "27.88,2.37" "33,2.37" "")
  3023. ;;; (command "_.LINE" "25.38,.875" "27.88,.875" "")
  3024. ;;; ;;;
  3025. ;;; (command "_.LINE" "28.87,.5" "28.87,.75" "")
  3026. ;;; (command "_.LINE" "31.25,.5" "31.25,.75" "")
  3027. ;;; (command "_.LINE" "28.26,.75" "28.26,1.25" "")
  3028. ;;; (command "_.LINE" "29.51,.75" "29.51,1.25" "")
  3029. ;;; (command "_.LINE" "32.5,.75" "32.5,1.25" "")
  3030. ;;; ;;;
  3031. ;;; (command "_.STYLE" "ADESK1" "romans" "0" "1.0" "0" "" "" "")
  3032. ;;; (command "_.TEXT" "27.9323,0.5925" "0.065" "0" "Escala")
  3033. ;;; (command "_.TEXT" "31.3028,0.5925" "0.065" "0" "Hoja")
  3034. ;;; (command "_.TEXT" "27.9679,1.1359" "0.065" "0" "TAM.")
  3035. ;;; (command "_.TEXT" "28.3289,1.1359" "0.065" "0" "N║ FSCM.")
  3036. ;;; (command "_.TEXT" "29.5810,1.1359" "0.065" "0" "N║ DIB.")
  3037. ;;; (command "_.TEXT" "32.6405,1.1359" "0.065" "0" "REV")
  3038. ;;; ;;;
  3039. ;;; ;;; Revision bar
  3040. ;;; ;;;
  3041. ;;; ;;; Horizontals
  3042. ;;; (command "_.LINE" "26,21.25" "33,21.25" "")
  3043. ;;; (command "_.LINE" "26,21" "33,21" "")
  3044. ;;; ;;;
  3045. ;;; ;;; Verticals
  3046. ;;; (command "_.LINE" "26,20.4527" "26,21.5" "")
  3047. ;;; (command "_.LINE" "26.5,21"  "26.5,21.25" "")
  3048. ;;; (command "_.LINE" "26.88,21" "26.88,21.25" "")
  3049. ;;; (command "_.LINE" "31.12,21" "31.12,21.25" "")
  3050. ;;; (command "_.LINE" "32,21"    "32,21.25" "")
  3051. ;;; ;;;
  3052. ;;; ;;; Revision bar text
  3053. ;;; ;;;
  3054. ;;; (command "_.TEXT" "29.5746,21.3325" "0.065" "0" "REVISIONES")
  3055. ;;; (command "_.TEXT" "26.1087,21.0903" "0.065" "0" "ZONA")
  3056. ;;; (command "_.TEXT" "26.5801,21.0903" "0.065" "0" "REV")
  3057. ;;; (command "_.TEXT" "28.7464,21.0903" "0.065" "0" "DESCRIPCION")
  3058. ;;; (command "_.TEXT" "31.4477,21.0903" "0.065" "0" "Fecha")
  3059. ;;; (command "_.TEXT" "32.2477,21.0903" "0.065" "0" "APROBADO")
  3060. ;;; ;;;
  3061. ;;; (command "_.TEXT" "_MC"  "0.5,2.75" "0.25" "0" "A")
  3062. ;;; (command "_.TEXT" "_MC"  "0.5,8.25" "0.25" "0" "B")
  3063. ;;; (command "_.TEXT" "_MC"  "0.5,13.75" "0.25" "0" "C")
  3064. ;;; (command "_.TEXT" "_MC"  "0.5,19.25" "0.25" "0" "D")
  3065. ;;; (command "_.TEXT" "_MC" "33.5,2.75" "0.25" "0" "A")
  3066. ;;; (command "_.TEXT" "_MC" "33.5,8.25" "0.25" "0" "B")
  3067. ;;; (command "_.TEXT" "_MC" "33.5,13.75" "0.25" "0" "C")
  3068. ;;; (command "_.TEXT" "_MC" "33.5,19.25" "0.25" "0" "D")
  3069. ;;; ;;;
  3070. ;;; (command "_.TEXT" "_MC" "2.125,0.25"  "0.25" "0" "8")
  3071. ;;; (command "_.TEXT" "_MC" "6.375,0.25"  "0.25" "0" "7")
  3072. ;;; (command "_.TEXT" "_MC" "10.625,0.25"  "0.25" "0" "6")
  3073. ;;; (command "_.TEXT" "_MC" "14.875,0.25"  "0.25" "0" "5")
  3074. ;;; (command "_.TEXT" "_MC" "19.125,0.25"  "0.25" "0" "4")
  3075. ;;; (command "_.TEXT" "_MC" "23.375,0.25"  "0.25" "0" "3")
  3076. ;;; (command "_.TEXT" "_MC" "27.625,0.25"  "0.25" "0" "2")
  3077. ;;; (command "_.TEXT" "_MC" "31.875,0.25"  "0.25" "0" "1")
  3078. ;;; ;;;
  3079. ;;; (command "_.TEXT" "_MC" "2.125,21.75"  "0.25" "0" "8")
  3080. ;;; (command "_.TEXT" "_MC" "6.375,21.75"  "0.25" "0" "7")
  3081. ;;; (command "_.TEXT" "_MC" "10.625,21.75"  "0.25" "0" "6")
  3082. ;;; (command "_.TEXT" "_MC" "14.875,21.75"  "0.25" "0" "5")
  3083. ;;; (command "_.TEXT" "_MC" "19.125,21.75"  "0.25" "0" "4")
  3084. ;;; (command "_.TEXT" "_MC" "23.375,21.75"  "0.25" "0" "3")
  3085. ;;; (command "_.TEXT" "_MC" "27.625,21.75"  "0.25" "0" "2")
  3086. ;;; (command "_.TEXT" "_MC" "31.875,21.75"  "0.25" "0" "1")
  3087. ;;; END_ITEM
  3088. ;;; 
  3089. ;;; An ANSI - E size sheet with Title block and revision bar.
  3090. ;;; All points are in paperspace units at a scale of 1 inch.
  3091. ;;; 
  3092. ;;; NAME - Formato ANSI-E (pul)
  3093. ;;; (command "_.ZOOM" "_W" "-0.5,-0.5" "44.5,34.5")
  3094. ;;; (command "_.LINE" "0,0" "44,0" "44,34" "0,34" "_C")
  3095. ;;; (command "_.LINE" ".5,1" "43.5,1" "43.5,33" ".5,33" "_C")
  3096. ;;; (command "_.LINE" "5.5,.5" "5.5,1" "")
  3097. ;;; (command "_.ARRAY" (entlast) "" "_R" "2" "8" "32.5" "5.5")
  3098. ;;; (command "_.LINE" ".125,4.25" ".5,4.25" "")
  3099. ;;; (command "_.ARRAY" (entlast) "" "_R" "7" "2" "4.25" "43.375")
  3100. ;;; ;;;
  3101. ;;; ;;; Bottom microfilm alignment arrow
  3102. ;;; (command "_.PLINE" "22,.6" "_W" "0.02" "" "22,.8" "")
  3103. ;;; (command "_.SOLID" "21.8,.8" "22.2,.8" "22,1" "" "")
  3104. ;;; ;;; Right microfilm alignment arrow
  3105. ;;; (command "_.PLINE" "43.9,17" "_W" "0.02" "" "43.7,17" "")
  3106. ;;; (command "_.SOLID" "43.7,16.8" "43.7,17.2" "43.5,17" "" "")
  3107. ;;; ;;; Top microfilm alignment arrow
  3108. ;;; (command "_.PLINE" "22,33.4" "_W" "0.02" "" "22,33.2" "")
  3109. ;;; (command "_.SOLID" "21.8,33.2" "22.2,33.2" "22,33" "" "")
  3110. ;;; ;;; Left microfilm alignment arrow
  3111. ;;; (command "_.PLINE" ".1,17" "_W" "0.02" "" ".3,17" "")
  3112. ;;; (command "_.SOLID" ".3,16.8" ".3,17.2" ".5,17" "" "")
  3113. ;;; ;;;
  3114. ;;; ;;;
  3115. ;;; ;;; Title block
  3116. ;;; ;;;
  3117. ;;; (command "_.LINE" "35.88,1" "35.88,3.5" "43.5,3.5" "")
  3118. ;;; (command "_.LINE" "35.88,1.375" "38.38,1.375" "")
  3119. ;;; (command "_.LINE" "35.88,1.75" "43.5,1.75" "")
  3120. ;;; (command "_.LINE" "38.38,1.25" "43.5,1.25" "")
  3121. ;;; (command "_.LINE" "38.38,2.87" "43.5,2.87" "")
  3122. ;;; ;;;
  3123. ;;; (command "_.LINE" "38.38,1" "38.38,3.5" "")
  3124. ;;; (command "_.LINE" "39.37,1" "39.37,1.25" "")
  3125. ;;; (command "_.LINE" "41.75,1" "41.75,1.25" "")
  3126. ;;; (command "_.LINE" "38.76,1.25" "38.76,1.75" "")
  3127. ;;; (command "_.LINE" "40.01,1.25" "40.01,1.75" "")
  3128. ;;; (command "_.LINE" "43,1.25" "43,1.75" "")
  3129. ;;; ;;;
  3130. ;;; (command "_.STYLE" "ADESK1" "romans" "0" "1.0" "0" "" "" "")
  3131. ;;; (command "_.TEXT" "38.4323,1.0925" "0.065" "0" "Escala")
  3132. ;;; (command "_.TEXT" "41.8028,1.0925" "0.065" "0" "Hoja")
  3133. ;;; (command "_.TEXT" "38.4679,1.6359" "0.065" "0" "TAM.")
  3134. ;;; (command "_.TEXT" "38.8289,1.6359" "0.065" "0" "N║ FSCM.")
  3135. ;;; (command "_.TEXT" "40.0810,1.6359" "0.065" "0" "N║ DIB.")
  3136. ;;; (command "_.TEXT" "43.1405,1.6359" "0.065" "0" "REV")
  3137. ;;; ;;;
  3138. ;;; ;;; Revision bar
  3139. ;;; ;;;
  3140. ;;; ;;; Horizontals
  3141. ;;; (command "_.LINE" "36.5,32.75" "43.5,32.75" "")
  3142. ;;; (command "_.LINE" "36.5,32.5" "43.5,32.5" "")
  3143. ;;; ;;;
  3144. ;;; ;;; Verticals
  3145. ;;; (command "_.LINE" "36.5,31.9527" "36.5,33" "")
  3146. ;;; (command "_.LINE" "37,32.5"    "37,32.75" "")
  3147. ;;; (command "_.LINE" "37.38,32.5" "37.38,32.75" "")
  3148. ;;; (command "_.LINE" "41.62,32.5" "41.62,32.75" "")
  3149. ;;; (command "_.LINE" "42.5,32.5"  "42.5,32.75" "")
  3150. ;;; ;;;
  3151. ;;; ;;; Revision bar text
  3152. ;;; ;;;
  3153. ;;; (command "_.TEXT" "40.0746,32.8325" "0.065" "0" "REVISIONES")
  3154. ;;; (command "_.TEXT" "36.6087,32.5903" "0.065" "0" "ZONA")
  3155. ;;; (command "_.TEXT" "37.0801,32.5903" "0.065" "0" "REV")
  3156. ;;; (command "_.TEXT" "39.2464,32.5903" "0.065" "0" "DESCRIPCION")
  3157. ;;; (command "_.TEXT" "41.9477,32.5903" "0.065" "0" "Fecha")
  3158. ;;; (command "_.TEXT" "42.7477,32.5903" "0.065" "0" "APROBADO")
  3159. ;;; ;;;
  3160. ;;; (command "_.TEXT" "_MC" "0.25,2.125"  "0.25" "0" "A")
  3161. ;;; (command "_.TEXT" "_MC" "0.25,6.375"  "0.25" "0" "B")
  3162. ;;; (command "_.TEXT" "_MC" "0.25,10.625" "0.25" "0" "C")
  3163. ;;; (command "_.TEXT" "_MC" "0.25,14.875" "0.25" "0" "D")
  3164. ;;; (command "_.TEXT" "_MC" "0.25,19.125" "0.25" "0" "E")
  3165. ;;; (command "_.TEXT" "_MC" "0.25,23.375" "0.25" "0" "F")
  3166. ;;; (command "_.TEXT" "_MC" "0.25,27.625" "0.25" "0" "G")
  3167. ;;; (command "_.TEXT" "_MC" "0.25,31.875" "0.25" "0" "H")
  3168. ;;; ;;;
  3169. ;;; (command "_.TEXT" "_MC" "43.75,2.125"  "0.25" "0" "A")
  3170. ;;; (command "_.TEXT" "_MC" "43.75,6.375"  "0.25" "0" "B")
  3171. ;;; (command "_.TEXT" "_MC" "43.75,10.625" "0.25" "0" "C")
  3172. ;;; (command "_.TEXT" "_MC" "43.75,14.875" "0.25" "0" "D")
  3173. ;;; (command "_.TEXT" "_MC" "43.75,19.125" "0.25" "0" "E")
  3174. ;;; (command "_.TEXT" "_MC" "43.75,23.375" "0.25" "0" "F")
  3175. ;;; (command "_.TEXT" "_MC" "43.75,27.625" "0.25" "0" "G")
  3176. ;;; (command "_.TEXT" "_MC" "43.75,31.875" "0.25" "0" "H")
  3177. ;;; ;;;
  3178. ;;; (command "_.TEXT" "_MC" "2.75,0.5"  "0.25" "0" "8")
  3179. ;;; (command "_.TEXT" "_MC" "8.25,0.5"  "0.25" "0" "7")
  3180. ;;; (command "_.TEXT" "_MC" "13.75,0.5"  "0.25" "0" "6")
  3181. ;;; (command "_.TEXT" "_MC" "19.25,0.5"  "0.25" "0" "5")
  3182. ;;; (command "_.TEXT" "_MC" "24.75,0.5"  "0.25" "0" "4")
  3183. ;;; (command "_.TEXT" "_MC" "30.25,0.5"  "0.25" "0" "3")
  3184. ;;; (command "_.TEXT" "_MC" "35.75,0.5"  "0.25" "0" "2")
  3185. ;;; (command "_.TEXT" "_MC" "41.25,0.5"  "0.25" "0" "1")
  3186. ;;; ;;;
  3187. ;;; (command "_.TEXT" "_MC" "2.75,33.5"  "0.25" "0" "8")
  3188. ;;; (command "_.TEXT" "_MC" "8.25,33.5"  "0.25" "0" "7")
  3189. ;;; (command "_.TEXT" "_MC" "13.75,33.5"  "0.25" "0" "6")
  3190. ;;; (command "_.TEXT" "_MC" "19.25,33.5"  "0.25" "0" "5")
  3191. ;;; (command "_.TEXT" "_MC" "24.75,33.5"  "0.25" "0" "4")
  3192. ;;; (command "_.TEXT" "_MC" "30.25,33.5"  "0.25" "0" "3")
  3193. ;;; (command "_.TEXT" "_MC" "35.75,33.5"  "0.25" "0" "2")
  3194. ;;; (command "_.TEXT" "_MC" "41.25,33.5"  "0.25" "0" "1")
  3195. ;;; END_ITEM
  3196. ;;; 
  3197. ;;; A sample Architectural 24 x 36 sheet with Title block and revision bar.
  3198. ;;; All points are in paperspace units at a scale of 1 inch.
  3199. ;;; 
  3200. ;;; NAME - Pies y pulgadas II/Pies y pulgadas I (24 x 36 pul)
  3201. ;;; (command "_.ZOOM" "_W" "-0.5,-0.5" "36.5,24.5")
  3202. ;;; (command "_.LINE" "0,0" "36,0" "36,24" "0,24" "_C")
  3203. ;;; ;;; Outer border line
  3204. ;;; (command "_.PLINE" ".5,.5" "_W" "0.1" "" "35.5,.5" "35.5,23.5" ".5,23.5" "_C")
  3205. ;;; (command "_.FILLET" "_R" "1")
  3206. ;;; (command "_.FILLET" "_P" "_l")
  3207. ;;; ;;;
  3208. ;;; ;;; Title block
  3209. ;;; ;;;
  3210. ;;; ;;; Outer border line
  3211. ;;; (command "_.PLINE" "31,1" "_W" "0.05" "" "35,1" "35,23" "31,23" "_C")
  3212. ;;; (command "_.FILLET" "_R" ".5")
  3213. ;;; (command "_.FILLET" "_P" "_l")
  3214. ;;; ;;;
  3215. ;;; ;;; Sheet No. border line
  3216. ;;; (command "_.PLINE" "31.25,1.25" "34.75,1.25" "34.75,2.75" "31.25,2.75" "_C")
  3217. ;;; (command "_.FILLET" "_R" ".25")
  3218. ;;; (command "_.FILLET" "_P" "_l")
  3219. ;;; ;;;
  3220. ;;; ;;; Project border line
  3221. ;;; (command "_.PLINE" "31.25,3" "34.75,3" "34.75,5" "31.25,5" "_C")
  3222. ;;; (command "_.FILLET" "_P" "_l")
  3223. ;;; ;;;
  3224. ;;; ;;; Firm border line
  3225. ;;; (command "_.PLINE" "31.25,5.25" "34.75,5.25" "34.75,7.25" "31.25,7.25" "_C")
  3226. ;;; (command "_.FILLET" "_P" "_l")
  3227. ;;; ;;;
  3228. ;;; ;;; Notes/Revisions border line
  3229. ;;; (command "_.PLINE" "31.25,7.5" "34.75,7.5" "34.75,22.75" "31.25,22.75" "_C")
  3230. ;;; (command "_.FILLET" "_P" "_l")
  3231. ;;; ;;;
  3232. ;;; ;;; Sheet No. lines
  3233. ;;; (command "_.PLINE" "33.25,1.25" "_W" "0.025" "" "33.25,2.75" "")
  3234. ;;; (command "_.PLINE" "31.25,2.25" "33.25,2.25" "")
  3235. ;;; (command "_.PLINE" "31.25,1.75" "33.25,1.75" "")
  3236. ;;; ;;;
  3237. ;;; ;;; Notes/Revisions lines
  3238. ;;; (command "_.PLINE" "31.75,7.5"   "31.75,8.625" "")
  3239. ;;; (command "_.PLINE" "34.125,7.5"  "34.125,8.625" "")
  3240. ;;; (command "_.PLINE" "31.25,7.875" "34.75,7.875" "")
  3241. ;;; (command "_.PLINE" "31.25,8.25"  "34.75,8.25" "")
  3242. ;;; (command "_.PLINE" "31.25,8.625" "34.75,8.625" "")
  3243. ;;; ;;;
  3244. ;;; (command "_.PLINE" "31.25,22.375" "34.75,22.375" "")
  3245. ;;; ;;;
  3246. ;;; ;;; Sheet text
  3247. ;;; (command "_.STYLE" "ADESK1" "romans" "0" "1.0" "0" "" "" "")
  3248. ;;; (command "_.TEXT" "31.4054,7.0711" "0.065" "0" "Nombre y direcci≤n de la empresa")
  3249. ;;; (command "_.TEXT" "31.4054,4.8211" "0.065" "0" "Nombre del proyecto y direcci≤n")
  3250. ;;; (command "_.TEXT" "31.4054,2.5846" "0.065" "0" "Proyecto")
  3251. ;;; (command "_.TEXT" "33.3899,2.5846" "0.065" "0" "Hoja")
  3252. ;;; (command "_.TEXT" "31.4054,2.0989" "0.065" "0" "Fecha")
  3253. ;;; (command "_.TEXT" "31.4054,1.6132" "0.065" "0" "Escala")
  3254. ;;; ;;;
  3255. ;;; ;;; Revision bar text
  3256. ;;; ;;;
  3257. ;;; (command "_.TEXT" "_MC" "32.9983,22.5578" "0.1" "0" "Notas generales")
  3258. ;;; (command "_.TEXT" "_MC" "31.5136,7.7034" "0.1" "0" "N║")
  3259. ;;; (command "_.TEXT" "_MC" "32.9983,7.7034" "0.1" "0" "Revisi≤n/Salida")
  3260. ;;; (command "_.TEXT" "_MC" "34.4338,7.7034" "0.1" "0" "Fecha")
  3261. ;;; ;;;
  3262. ;;; END_ITEM
  3263. ;;;
  3264. ;;; A generic 24 x 36 sheet with Title block and revision bar.
  3265. ;;; All points are in paperspace units at a scale of 1 inch.
  3266. ;;;
  3267. ;;; NAME - Formato D genΘrico (24 x 36 pul)
  3268. ;;; (command "_.ZOOM" "_W" "-0.5,-0.5" "36.5,24.5")
  3269. ;;; (command "_.PLINE" "0,2" "0,0" "2,0" "")
  3270. ;;; (command "_.PLINE" "0,22" "0,24" "2,24" "")
  3271. ;;; (command "_.PLINE" "34,24" "36,24" "36,22" "")
  3272. ;;; (command "_.PLINE" "34,0" "36,0" "36,2" "")
  3273. ;;; ;;; Outer border line
  3274. ;;; (command "_.PLINE" "1.5,1.25" "33.75,1.25" "33.75,22.75" "1.5,22.75" "_C")
  3275. ;;; ;;;
  3276. ;;; ;;; Title block
  3277. ;;; ;;;
  3278. ;;; ;;; Outer border line
  3279. ;;; (command "_.PLINE" "33.875,1.25" "35.5,1.25" "35.5,22.75" "33.875,22.75" "_C")
  3280. ;;; ;;;
  3281. ;;; (command "_.LINE" "33.875,2.5693" "35.5,2.5693" "")
  3282. ;;; (command "_.LINE" "33.875,2.9443" "35.5,2.9443" "")
  3283. ;;; (command "_.LINE" "33.875,3.3193" "35.5,3.3193" "")
  3284. ;;; (command "_.LINE" "33.875,3.6943" "35.5,3.6943" "")
  3285. ;;; (command "_.LINE" "33.875,4.0693" "35.5,4.0693" "")
  3286. ;;; (command "_.LINE" "33.875,20.5" "35.5,20.5" "")
  3287. ;;; (command "_.LINE" "33.875,20.75" "35.5,20.75" "")
  3288. ;;; (command "_.LINE" "33.875,21" "35.5,21" "")
  3289. ;;; (command "_.LINE" "33.875,21.25" "35.5,21.25" "")
  3290. ;;; (command "_.LINE" "33.875,21.5" "35.5,21.5" "")
  3291. ;;; (command "_.LINE" "33.875,21.75" "35.5,21.75" "")
  3292. ;;; (command "_.LINE" "33.875,22" "35.5,22" "")
  3293. ;;; (command "_.LINE" "33.875,22.375" "35.5,22.375" "")
  3294. ;;; ;;;
  3295. ;;; (command "_.LINE" "35.125,20.5" "35.125,22.375" "")
  3296. ;;; ;;;
  3297. ;;; END_ITEM
  3298. ;;; END_DATA
  3299. ;;;
  3300. ;;; MVIEWS
  3301. ;;; Ninguna, 0, 0
  3302. ;;; Unica, 1, 1, PLAN
  3303. ;;; Pies y pulgadas I, 2, 2, FRONT, PLAN, RIGHT, ISO
  3304. ;;; Distribuci≤n de ventanas
  3305. ;;; END_MVIEWS
  3306. ;;;
  3307. ;;; VPSETNAME  - Unica
  3308. ;;; (command "._mview" ll_crn ur_crn)
  3309. ;;; END_ITEM
  3310. ;;; VPSETNAME  - Pies y pulgadas I
  3311. ;;; END_ITEM
  3312. ;;; VPSETNAME  - Distribuci≤n de ventanas
  3313. ;;; END_ITEM
  3314. ;;;
  3315. ;;; END_DATA
  3316. ;;;
  3317. ;(princ ;|MVSETUP_LSP_201|;"MVSETUP loaded.")
  3318. (princ)
  3319.